360 likes | 842 Views
HTML Colors. Contains 16,777,216 Colors. How do I add colors to my web page?. <font color=“red”> My Car is red </font>. Notepad. Works with the “Standard” colors: Red, Green, Blue, White, Black,…. Not Recommended method. My Car is red. Browser.
E N D
HTML Colors Contains 16,777,216 Colors
How do I add colors to my web page? <font color=“red”> My Car is red </font> Notepad Works with the “Standard” colors: Red, Green, Blue, White, Black,… Not Recommended method My Car is red Browser
How do I add colors to my web page? The “Code” An example • Colors are shown using a 6 digit code 123456 • The digits are separated into 3 groups of 2 123456
123456 Blue Red Green How do I add colors to my web page? The “Code” An example • Colors are shown using a 6 digits 123456 • The digits are separated into 3 groups of 2 123456 • Each group is a color: Red, Green, Blue Known as RGB colors Higher the Number - The brighter the color !
How do I add colors to my web page? The “Code” An example R G B 123456 • Each group is a color: Red, Green, Blue • 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 White = All colors equal = FFFFFF Red = Only Red = FF0000 Green = Only Green = 00FF00 Blue = Only Blue = 0000FF = Red and Green w/ NO Blue Yellow = FFFF00
Red = FF0000 How do I add colors to my web page? The “Code” “#FF0000”
How do I add colors to my web page? <font color=“#FF0000”> My Car is red </font> Notepad My Car is red Browser