Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 562 Bytes

color.md

File metadata and controls

21 lines (16 loc) · 562 Bytes

color

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

Values

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

Examples

color="red"
color="#f00"
color="#ff0000"
color="rgb(255,0,0)"
color="rgb(100%, 0%, 0%)"
color="hsl(0, 100%, 50%)"