Background Color

You can change the background color and the text color of your document by adding attributes to your <BODY> tag like the following:

<BODY BGCOLOR="" TEXT="">

The values of BGCOLOR and TEXT are RGB values or Red-Green-Blue values. They are six digit values where the first two digits correspond to how much red is in the color, the second two digits correspond to how much green is in the color, and the third two digits correspond to how much blue is in the color, rrggbb. Each digit in a RGB value can be either 0-9 or A-F. 0 is the smallest amount of a color, and F is the most amount of a color that you can have. The following are some example colors:

<BODY BGCOLOR="000000" TEXT="FF0000"> black background, red text
<BODY BGCOLOR="FFFFFF" TEXT="003300"> white background, dark green text
<BODY BGCOLOR="0000FF" TEXT="FFFFFF"> blue background, white text

If you want to add a background picture to your web page then replace BGCOLOR with BACKGROUND. It's value should be the name of the picture file.

<BODY BACKGROUND="filename.gif">

The picture must be a .gif or a .jpg and it must be in the same place as your html file in order for it to show up in your web page.

Go back to Main Page...