CSS color Property


CSS's color property is used to change the color of text, the background of a webpage, and the color of borders.

Syntax

Example

Preview

Property Values

Value Description
color Specifies the color of the text. For a complete list of color values, see CSS Color Values.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
color 1.0 1.0 1.0 3.0 3.5