color attribute | color property
Sets or retrieves the color to be used by the object.
Syntax
| HTML | <element color="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: Variant
one of the color names or RGB values in the Color Table.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 15.2.2 (Deprecated)
Remarks
Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012