How To...Be Colorful!

Colorizing your page for dynamic output and readability can be rewarding, and it can be deadly if you don't use the right colors. Overall colors for an entire HTML document are set in the <BODY> tag. I'll cover specific color changes in words/sentences later.

In the <BODY> tag, the following can be used to change colors.
<BODY TEXT="#xxxxxx" LINK="#xxxxxx" VLINK="#xxxxxx" ALINK="#xxxxxx" BGCOLOR="#xxxxxx">
The x's represent hexadecimal numbers that tell the browser you're using to assign the colors to.

Color listing with hexadecimal,decimal, and colored text:
Part I
Part II
It may take a few seconds for the color table to load via a Perl program.

Font Color Manipulation

In order for you to see this, you must be using Netscape 1.2 or higher or Microsoft's Internet Explorer.
If this line is a different color, then your browser is compatible

To change the color of specific TEXT (not the color of a specific link), the <FONT> tag will do that for you.
Here's the syntax:
<FONT COLOR="#FF000">Text Color Change</FONT>
That, in effect, will do this:
Text Color Change

With the <FONT> tag, you can also change the size of the font.


If you know the decimal code, here's a form to convert it to hexadecimal:
(If you have 0's (zero's) in your number, you can leave the slot blank.)

Red

Green

Blue

[Return]
Return to How-To index