Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All color

color of type DOMString

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

Possible values are the color name or RGB value. For more information, see [CSS-Level2-2009] section 4.3.6 Colors.

Returns a six-digit hex value.

This attribute extends the HTMLHRElement interface.

© 2015 Microsoft