color (HTML attribute)
| Depr. | Version |
|---|---|
| Yes | HTML 2 |
| IE5.5+ | FF2 | SA4 | OP10 | CH2 |
|---|---|---|---|---|
| Full | None | None | None | None |
Syntax
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.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.




