2.3.2.6 fgColor

fgColor of type DOMString

Sets or retrieves the foreground (text) color of the document.

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. The default value is #000000.

This is a DOM attribute only.

This attribute extends the HTMLDocument interface.