color (HTML attribute)

Spec
Depr. Version
Yes HTML 2
Browser support (more…)
IE5.5+ FF2 SA4 OP10 CH2
Full None None None None

Syntax

color="colorname/#hexvalue"

Description

The color attribute changes the color of the text that follows the basefont element.

Example

<basefont size="2" color="purple">

Value

This attribute takes as its value a recognised color name (such as "blue" or "red"; see the color names reference for more) or a value specified in hexadecimal format (for example, "#003366").

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full None None None None None None None None None None None

This attribute is only supported by Internet Explorer. The attribute—and the element as a whole (which is deprecated)—shouldn’t be used at all.

User-contributed notes

There are no comments yet.

Related Products