1. Home
  2. Computing & Technology
  3. Web Design / HTML

How To Change the Font Color with CSS

By Jennifer Kyrnin, About.com

It's easy to change the font color with one simple CSS style property.

In this how to, you'll learn how to change the font color on a paragraph tag. But you can use the same style property to change the fond color on any tag that surrounds text, including the <body> tag.

Difficulty: Easy
Time Required: 2 minutes

Here's How:

  1. Add the style property to the tag:
    <p style="">
  2. Place the color style property in the attribute value:
    <p style="color:">
  3. Then add your color to the style:
    <p style="color:red;">
  4. Type your text inside the paragraph.
  5. Close the paragraph tag:
    </p>
More Web Design / HTML How To's

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. Web Design
  5. Principles of Web Design
  6. Color
  7. How to Change the Font Color with CSS - Font Colors Cascading Style Sheets

©2008 About.com, a part of The New York Times Company.

All rights reserved.