Chapter 26: Font Color

Setting the font colour is one of the easiest things to do for an element. The format is:

color: rgb(255,0,0);

Remember to refer to my colour table to get the exact colour you want.

Best way to show this one is by example!

<p style="color: rgb(0,0,255);">Blue text</p>

Output

Blue text

Have a go if you would like, and then... take the most difficult quiz in the world...