Adding Color to Pages


If you choose to use a dark image for a background or a dark color, then you can change the text colors using the following commands. You can change the color of these types of text:

* Body text--the main text on your page

* Body Link--an unvisited hyperlink

* Vlink--a visited hyperlink

The numbers can be changed to any color combination you choose. These commands must be the first commands after the <body> tag. The combination of background color and text shown below gives you a black background, white text, a green unvisited hyperlink, and a magenta visited hyperlink.

<html>

<head>
<title>Adding Colors to Pages</title>
</head>
<body bgcolor="#000000" Body text="#ffffff" Body Link=#00ff00"
Vlink="#00C0C0">

<h1>Your text goes here.</h1>

<a href="link.htm">An unvisited link</a>
<a href="colorpag.htm">A visited link</a>
</body>
</html>

Show this document


Return to HTML Tutorial Menu