Specifying Background Color

The background color is done exactly the same way as the text color; you just use a different keyword:

background-color: color-name;


background-color: red;
background-color: #99ff99;

...and yet another example of its use:

You can have a
<span style="background-color: yellow;">highlight effect</span>
or a <span style="background-color: #9999ff;">light blue

And here are the results:

You can have a highlight effect or a light blue background.

  Specifying Font Family  Index Specifying Multiple Aspects