0% found this document useful (0 votes)
77 views

CSS Warna, Border

The document defines HTML color keywords and their equivalent hex, RGB, and HSL color code values. It also lists keywords for specifying various border properties including width, style, and color.

Uploaded by

zakirahyaakob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

CSS Warna, Border

The document defines HTML color keywords and their equivalent hex, RGB, and HSL color code values. It also lists keywords for specifying various border properties including width, style, and color.

Uploaded by

zakirahyaakob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

 aqua - aqua = #00ffff = rgb(0,255,255)

 black - black = #000000 = rgb(0,0,0)


 blue - blue = #0000ff = rgb(0,0,255)
 fuchsia - fuchsia = #ff00ff = rgb(255,0,255)
 gray - gray = #808080 = rgb(128,128,128)
 green - green = #008000 = rgb(0,128,0)
 lime - lime = #00ff00 = rgb(0,255,0)
 maroon - maroon = #800000 = rgb(128,0,0)
 navy - navy = #000080 = rgb(0,0,128)
 olive - olive = #808000 = rgb(128,128,0)
 orange - orange = #ffa500 = rgb(255,165,0)
 purple - purple = #800080 = rgb(128,0,128)
 red - red = #ff0000 = rgb(255,0,0)
 silver - silver = #c0c0c0 = rgb(192,192,192)
 teal - teal = #008080 = rgb(0,128,128)
 white - white = #ffffff = rgb(255,255,255)
 yellow - yellow = #ffff00 = rgb(255,255,0)
 transparent - The background color under the element is visible.
 inherit - The inherit keyword is used to specify that the value for this property should be
taken from the parent element. If inherit is used with the root element, then the initial value
for this property will be used.

The background-color property is set using the keyword yellow. aqua - aqua
The background-color property is set using a RGB 6-Digit Hexadecimal value of #ffa500.

The background-color property is set using a RGB Percentage Functional Notationvalue


of rgb(30%,50%,70%).
The background-color property is set using the keyword transparent.
he border-top property is set by specifying all 3 values.

The border-top property is set by only specifying a style

 width keywords:
o thin
o medium
o thick
 style keywords:
o none - No border.

o hidden - The same as the keyword none. It is however different for table elements in

terms of border conflict resolution.

o dotted - This is a sample

o dashed - This is a sample

o solid - This is a sample

o double - This is a sample

o groove - This is a sample

o ridge - This is a sample

o inset - This is a sample

o outset - This is a sample

Note: The border samples, shown above, may not appear identically in all browsers.

 color keywords:
o aqua - aqua = #00ffff = rgb(0,255,255)
o black - black = #000000 = rgb(0,0,0)
o blue - blue = #0000ff = rgb(0,0,255)
o fuchsia - fuchsia = #ff00ff = rgb(255,0,255)
o gray - gray = #808080 = rgb(128,128,128)
o green - green = #008000 = rgb(0,128,0)
o lime - lime = #00ff00 = rgb(0,255,0)
o maroon - maroon = #800000 = rgb(128,0,0)
o navy - navy = #000080 = rgb(0,0,128)
o olive - olive = #808000 = rgb(128,128,0)
o orange - orange = #ffa500 = rgb(255,165,0)
o purple - purple = #800080 = rgb(128,0,128)
o red - red = #ff0000 = rgb(255,0,0)
o silver - silver = #c0c0c0 = rgb(192,192,192)
o teal - teal = #008080 = rgb(0,128,128)
o white - white = #ffffff = rgb(255,255,255)
o yellow - yellow = #ffff00 = rgb(255,255,0)
o transparent - The background color under the border is visible.

You might also like