Description

Sets the text color or forground color of an element.

Example

span{color:red;}
span{ color: #f00; } /* #rgb shorthand Hex value*/
span{ color: #ff0000; } /* #rrggbb Hex value*/
span { color: rgb(255,0,0 ) } /* integer range 0 - 255 */
span{ color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */

Values
color keyword of numerical color value
Default value
black
Introduced in CSS version
1
Applies to elements
All
Inherited
Yes
Browser Support
BrowsersIE ieFirefox firefoxSafari safariOpera operaChrome chrome
Versions51160.2

See the full list CSS properties and browser support: CSS Properties