CSS property: color
Description
Text color.
This property describes the foreground color of an element's text content.
Syntax
color: <color>;
Values
- <color>
- The text color. Colors can be specified with a constant, an RGB value, or a hexadecimal value.
Versions
Examples
h1 { color: yellow; } h2 { color: #0000ff; } p { color: #0f0; } strong { color: rgb(255, 42, 42); }