color (HTML attribute)

Spec
Depr. Version
Yes HTML 2
Browser support (more…)
IE5.5+ FF1+ SA1.3+ OP9.2+ CH2+
Full Full Full Full Full

Syntax

color="colorname/#hexvalue"

Description

The color attribute changes the color of the text inside the font element.

Example

<p>This is not the way to emphasise text on a page - <font
color="#003399">remember this!</font></p>

Value

A recognised color name (e.g. "blue" or "red" - see color names reference) or a value specified in hexadecimal (e.g. "#003366").

Compatibility

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

It causes no compatibility issues, and has excellent support across all tested browsers.

User-contributed notes

There are no comments yet.

Related Products