» Home
» Tutorials
» Search  
» Contact us 

Home » Tutorials » Introduction to HTML » Chapter 4

4.4: Changing Font Characteristics
4.4.3: Font Colors

Font Colors

As discussed in Chapter 3, the CSS color property is used to change the color of any item in the foreground of a web page, including text. Alternatively, the background-color property is used to change the color of anything in the background of a web page. This means you can attach two color characteristics to a single paragraph, for instance. The following code shows how this might be done to add a yellow highlight behind some purple text with an inline style sheet.

<p style="color: purple;background-color: yellow;">Remember to bring
your notebooks back to class tomorrow, because we will be starting a
new unit in English Literature.</p>

 

Quick Reference

In summary, below table lists the most common style-sheet properties used to alter font characteristics.

 

Click next Chapter to see, Working with Links.

Home | Link to Us | Partner Links | About us | Contact us

Copyright © 2009-2012 F1tutorials.com | All Rights Reserved