Properties
CSS
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";
