Changing Colors

There are many ways to use color in web pages. There are default colors that some browsers use, but you can use different ones in your page if you want.

You can define colors for:

When you're ready to choose your colors, look at VisiBone's helpful color chart.



Setting the color for some of the text

This sentence will be the normal color.
<font color="#FF0000"> This sentence will be red.</font>

This sentence will be the normal color.
This sentence will be red.



Setting the color for all of the text

To do this, put text="#" in the <BODY> tag.

The Sample Page changes the default text color.
The code in that case is:

<BODY text="#0000FF">



Setting the color for links that haven't been clicked on

To do this, put link="#" in the <BODY> tag.

The Sample Page changes the default for the color of those links.
The code in that case is:

<BODY link="#FF0000">



Setting the color for links that have been clicked on

To do this, put vlink="#" in the <BODY> tag.

The Sample Page changes the default for the color of those links.
The code in that case is:

<BODY vlink="#000000">



Setting the background color

If you have a background graphic, you don't need to set a background color.

To set the background color, put bgcolor="#" in the <BODY> tag.

The background color for this page was set to white (#FFFFFF). The code for this page is:

<BODY bgcolor="#FFFFFF">



Hints for using colors




[Table of Contents] [More HTML] [Next Page] [Previous Page]

© 1996-2008 Suzanne Cook