back

Color

This is used to set the colour of text.

The options are:
(1) A Colour, you can set the colour using a hex colour, in RGB format, or written as a colour name.
(2) Inherit, the text colour will be inherited from its parent element.

To set the colour for backgrounds, use the Background-Color property.

Example