color

The color CSS property sets the foreground color value of an element's text and text decorations, and sets the value. currentcolor may be used as an indirect value on other properties and is the default for other color properties, such as border-color.

Example

Initial value Varies from one browser to another
Applies to all elements. It also applies to ::first-letter and ::first-line.

Syntax

  
color: blueviolet;
  

Values

Sets the color of the textual and decorative parts of the element.

Browser support

color112133.51

We use cookies to improve your experience. Learn more in our Privacy policy.

×