Using Color in Web Pages

To change the background color to white use
The six F's are really three hexadecimal numbers. Don't panic. The idea isn't too complicated.

Colors on a computer screen are made by mixing red, green, and blue in varying amounts. The amounts are specified by numbers from 0 - 255. 0 means no color, 255 means full color. To make green, you would use the numbers 0 for red, 255 for green and 0 for blue. In hex these numbers are written: 00, FF, 00. Now it's easy to understand the BODY tag above. It's really FF, full red, FF, full green, and FF full blue, which produces white. This page's backgound color is FFFFF0.

The WWWeb Color Calculator allows you to mix and match colors visually, rather than by trial and error. The six hex digits display automatically, so all you have to do is copy them.

Sample Tags Using Colors

Sample One

This body tag sets the background color to white and the text color to red. A link appears blue and followed links (links you've already visited) are green.

Sample Two

To change the color of a word or two use the COLOR attribute of the FONT tag. This tag

Everything between the opening and closing FONT tags appears in the new color.

January 11, 1998

[Home] [Back]

Copyright © P.J. LaBrocca. All rights reserved.