Upload
mervyn-hutchinson
View
214
Download
1
Embed Size (px)
Citation preview
Contains16,777,216
Colors
<font color=“red”> My Car is red</font>
My Car is red
How do I add colors to my web page?
Notepad
Browser
Works with the “Standard” colors:
Red, Green, Blue, White, Black,…Not Recommended method
How do I add colors to my web page?
The “Code”
• Colors are shown using a 6 digit code
• The digits are separated into 3 groups of 2
123456
An example
12 34 56
How do I add colors to my web page?
The “Code”
• Colors are shown using a 6 digits
• The digits are separated into 3 groups of 2
123456
An example
12 34 56
• Each group is a color: Red, Green, Blue 12 34 56
RedGreen
BlueKnown as RGB colors
Higher the Number - The brighter the color !
How do I add colors to my web page?
The “Code”An example
• Each group is a color: Red, Green, Blue R G B12 34 56
• The digits are in Hexadecimal
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
How do I add colors to my web page?
The “Code”• Examples R G B
Black = No Colors = 000000
Red = Only Red = FF0000White = All colors equal = FFFFFF
Green = Only Green = 00FF00Blue = Only Blue = 0000FF
Yellow = FFFF00= Red and Green w/ NO Blue
How do I add colors to my web page?
The “Code”
FF0000Red =
“#FF0000”
<font color=“#FF0000”> My Car is red</font>
My Car is red
How do I add colors to my web page?
Notepad
Browser