- 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
Browsers IE 
Firefox 
Safari 
Opera 
Chrome 
Versions 5 1 1 6 0.2
Belongs to:
See the full list CSS properties and browser support: CSS Properties