Color In Web Documents
Netscape 1.1 allows the control of the background color,
text color, link color, and visited link color.
It does this by adding the BGCOLOR, TEXT, LINK, VLINK, and ALINK
attributes to the BODY tag.
- BGCOLOR is used to control the color of the background.
- TEXT is used to control the color of the normal text in your document.
- LINK is used to control the color of a unvisited link.
- VLINK is used to control the color of a visited link.
- ALINK is used to control the color of an active link (one that you are clicking on).
An example BODY tag which uses them all is:
<BODY BGCOLOR="#000000" TEXT="#F0F0F0"
LINK="#FFFF00" VLINK="#22AA22" ALINK="#0077FF">
Any or all of the attributes may be ommitted.
You may only may have only one BODY tag per page.
The sequence "#0077FF" is a representation of the Red, Green, and Blue components of an
RGB color in hexadecimal.
You can change the color of text part way through your document by using the
FONT tag with the COLOR option. For example:
<FONT COLOR="FF0000">Colored text</FONT>
Which looks like:
Colored text
Sample Color Chart
These colors are only a sample of the millions of possible colors.
Click On The Color You Want To Know The RGB Value For:
Back To Information
Copyright © 1997 Hurricane Electric. All Rights Reserved.