The background color is done exactly the same way as the text color; you just use a different keyword:
background-color: color-name;
Examples:
background-color: red; background-color: #99ff99;
...and yet another example of its use:
<p> You can have a <span style="background-color: yellow;">highlight effect</span> or a <span style="background-color: #9999ff;">light blue background</span>. </p>
And here are the results:
You can have a highlight effect or a light blue background.
Specifying Font Family | Index | Specifying Multiple Aspects |