17.07.2013 Views

HTML CODE | CASCADING STYLE SHEETS (CSS) PROPERTIES ...

HTML CODE | CASCADING STYLE SHEETS (CSS) PROPERTIES ...

HTML CODE | CASCADING STYLE SHEETS (CSS) PROPERTIES ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IRONWOOD RIDGE HIGH SCHOOL CAREER AND TECHNICAL EDUCATION<br />

INFORMATION TECHNOLOGY FUNDAMENTALS<br />

<strong>HTML</strong> <strong>CODE</strong> | <strong>CASCADING</strong> <strong>STYLE</strong> <strong>SHEETS</strong> (<strong>CSS</strong>)<br />

<strong>PROPERTIES</strong> RELATED TO COLOR<br />

In <strong>HTML</strong> code, you can refer to colors in several ways – by name, RGB value, hexadecimal value, or<br />

“short hex” value. <strong>HTML</strong> uses 216 colors; however, of the 216, only 16 colors are considered to be<br />

“Web safe,” meaning that they are designed to be displayed the same.<br />

RGB VALUES | are based on the intensity of red, green, and blue. Each RGB letter is represented<br />

by a value from 0-255. The three RGB values are often referred to as RGB triplets.<br />

HEXADECIMAL VALUES | are used for colors to represent the intensity of the red, green, and blue.<br />

In hexadecimal, 00 is the lowest intensity and FF is the highest. The hexadecimal number is<br />

preceded by a flag character (#).<br />

DECIMAL AND HEXADECIMAL NUMBERS<br />

DECIMAL HEXADECIMAL<br />

0-9 (same)<br />

10 A<br />

11 B<br />

12 C<br />

13 D<br />

14 E<br />

15 F<br />

BROWSER-SAFE COLORS<br />

NAME RGB TRIPLET HEXADECIMAL VALUE SHORT HEX VALUE<br />

Aqua (0,255,255) #00FFFF #0FF<br />

Black (0,0,0) #000000 #000<br />

Blue (0,0,255) #0000FF #00F<br />

Fuchsia (255,0,255) #FF00FF #f0F<br />

Gray (128,128,128) #FF00FF<br />

Green (0,128,0) #008000<br />

Lime (0,255,0) #00FF00<br />

Maroon (128,0,0) #800000<br />

Navy (0,0,128) #FF00FF<br />

Olive (128,128,0) #808000<br />

Purple (128,0,128) #800080<br />

Red (255,0,0) #FF0000 #f00<br />

Silver (192,192,192) #C0C0C0<br />

Teal (0,128,128) #008080<br />

White (255,255,255) #FFFFFF<br />

Yellow (255,255,0) #FFFF00

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!