By default browsers display text in black on a Gary background. However, you can change both elements if you want. Some HTML authors select a background color and coordinate it with a change in the color of the text.

Always preview changes like this to make sure your pages are readable. For example, many people find red text on a black background difficult to read.

You change the color of the background in the body tag like this:

<BODY BGCOLOR="black">

You change the color of the text like this:

<BODY BGCOLOR="black" TEXT="white">

You change the color of the links like this:

<BODY BGCOLOR="black" TEXT="white" LINK="green">

You change the color of the visited links like this:

<BODY BGCOLOR="black" TEXT="white" LINK="green" VLINK="yellow">

You change the color of the activated links like this:

<BODY BGCOLOR="black" TEXT="white" LINK="green" VLINK="yellow" ALINK="red">

An visited link is a link that you have followed already, it would be a different color from links you haven't followed, so you no which is which. An activated link will change color only as you click on the link.

© Copyright 2001 Carnegie Webhead's