color
all
alt
ch
dir
for
id
low
min
rel
top
url
URL
urn
TOC
Collapse the table of content
Expand the table of content

color attribute | color property

Sets or retrieves the color to be used by the object.

 

Syntax

HTML<element color="p" ... >
JavaScript

p = object.color

 

Property values

Type: Variant

one of the color names or RGB values in the Color Table.

Standards information

Remarks

Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.

See also

hr

 

 

Show:
© 2016 Microsoft