Colours can be specified in HTML pages in two ways—by using a colour name, or by using numbers to denote an RGB (Red, Green, Blue) colour value:
Table 5.0 shows the colour names available and their corresponding RGB values. These colour names may not be recognised by all browsers; however, the RGB colour values should display accurately in any browser. Therefore, when specifying colour values for Web pages targeted to work across different browsers, use the RGB color values.
An RGB color value consists of three two-digit hexadecimal numbers specifying the intensity of the corresponding colour. For example, the colour value #FF0000 is rendered red because the red number is set to its highest value, FF (or 255 in decimal form).
Note
Colours specified with hexadecimal RGB values must have a leading '#' character for compliance with Microsoft® Internet Explorer 6 and later versions. This affects all properties that accept a colour value.
The following table lists the colours supported as of Internet Explorer 4.0:
Table 5.0 HTML colours and their corresponding RGB values.