back next

Text Colors


To change the text colors, you'll need your color names or numbers just as you did for changing the backgrounds.

1. You can add text attribute to the <body> tag with either a color number or color name.

    <body bgcolor=#000000 text=#ffffff>
    Black background, and white text

When you change the text color in a page using attributes to the <body> tag, that change affects all the text on the page.


2. You can add color attribute to the <font> tag to change the color of individual words or phrases.

    <font color=#ff0000> Red Color </font>



Back to HTML tutor homepage | Back | Next | Email me