|
Using Colors
You can change the color of a font by using the <font color=color> command:
Alternatively, you can use the <font color=#rrggbb> command. HTML creates colors by combining red, blue and green, the three primary colors when working in light. Each of these three colors receives a two digit hexadecimal number (00 through ff), allowing for 256 shades. Combining the six hexadecimal digits makes it possible to create over 16 million different colors.
The following list gives you the basic palette for colors in HTML. Mix them as you will:
HINT: If you see a font in a color you particularly like or want to use, view the source of the page and write down the six digits for that color.
You can combine the color and size commands as in this example:
LESSON 2 | HOME PAGE | LESSON 4 © Geo. McCalip 2001 |