This is an ad.
 
Webmonkey Kids
Webmonkey Kids
Lessons
Projects
Playground
Tools

Background Color
icon Background Images
Font Color
Font Size
Headlines



Parents and Teachers:
Find out how your kids can use Webmonkey for Kids as a learning tool at home or in the classroom with our Planning Guide.

Send us feedback

Lesson D: Changing Your Page
Font Color


<body text=?> sets the font color

<body link="?"> sets the color of links

<body vlink="?"> sets the color of links that you have clicked on before

<body alink="?"> sets the color of links right when you're clicking on them

<font color="?"> changes the font color

</font> returns font to the color it was before the last <font color=?> tag

Fonts are the kinds of letters - that is, the text - you can use on your Web page. You may have seen fonts in other computer programs, with names like "Helvetica" and "Times New Roman."

To color the words on your whole page, put the font colors inside the HTML page's <body> tag. It works like this:

If you type:

<body text=lime link=red vlink=black alink=violet>

You will get a really hard to read, but nicely colored page, with lime green text and red links that turn black when you click on them, and violet after you've followed them.

Now, what if you only want to color a single word? Well, lucky for you (if not the rest of us), font tags let you do it. If you write in your HTML file:

<font color=green>Green</font> with envy.

You'll get:

Green with envy.

Not every color name will work, but a lot will. For a more complete list, take a look at our Color Codes section.

Back

Next Page