color

The color property specifies the foreground color of an element's text content.

color: <color> | inherit
Initial: depends on user agent
Applies To: all elements
Inherited: yes
Percentages: NA
Media: visual

Values

Δ

color: value;
 
Value: Description:
color Keyword or a numerical RGB (Red Green Blue) specification
inherit Takes the same computed value as the property for the element's parent

DOM

Δ

[window.]document.getElementById("element-id").style.color = "color";

Example | Values | color

Δ

Example | DOM

Δ

References

Δ