[Contents] [Previous] [Next] [Alphabetical Tag List] [Index]

HTML Tag Reference

Color Units

A color value can be specified as either a color name or a six digit hexadecimal RGB specification.

Color names include aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow, to name but a few. For more color names, see the file colortab.htm.

You can also specify an RGB color as a six digit hexadecimal number preceded by the pound (#) sign. The first two digits indicate the red value, the second two digits indicate the green value, and the last two digits indicate the blue value. The range for each color value is 00 to FF inclusive. For example:

<!-- red background -->
<BODY BGCOLOR="#FF0000">
<!-- gray background -->
<BODY BGCOLOR="#333333">


[Contents] [Previous] [Next] [Alphabetical Tag List] [Index]

Last Updated: 01/26/98 21:33:44


Copyright © 1998 Netscape Communications Corporation