CSS Colors

Keywords

We can use color keywords to specify exact colors. These keywords are case-insensitive and represent specific RGB color values.

In general, we use color keywords for testing purposes, or when using white, black or transparent colors. In most other situations, we are better off using exact RGB or HSL values.

Read more on MDN

<color>: A full list of all available CSS color keywords

Test yourself

Description

Change the color of the <h3> element to

blue

Tests

  1. 1 You should give the h3 element the color 'blue'.
  2. 2 You should open and close the h3 CSS rule with braces.
  3. 3 You should terminate the h3 color CSS declaration with a semicolon.
Editor
Preview