In order to change the color of your text and background, you need to be familiar with a very important tag in HTML. This tag is called the body tag, and it looks like this: <BODY>
The body tag is located in the basic format of every HTML page:
<HTML>
<HEAD>
<TITLE>Page Title</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
This is the exact format you will see when you edit your page in our advanced editor.
In order to change the color of your text and background, you should highlight and then delete the <BODY> tag and replace it with the following tag:
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" ALINK="#FF0000" VLINK="#009900">
You may notice that the <BODY> tag looks quite a bit different now. This is because we have added four more elements to this tag.
- This element, BGCOLOR="#FFFFFF", controls the background color of your page. You can alter the color of your background by changing the hexadecimal color values. These values are represented by the numbers/letters #FFFFFF. Learn more about changing your hexadecimal color combinations.
- This element, TEXT="#000000", controls the color of the text on the whole page. Once again the numbers/leters #000000 represent a hexadecimal color. Here is more information about changing your hexadecimal color combinations.
- This element LINK="#0000FF" controls the color of the unvisited links on the whole page. Once again the numbers/letters #0000FF represent a hexadecimal color. Here is more information about changing your hexadecimal color combinations.
- This element ALINK="#FF0000" controls the color the links will change to, once a user clicks on the link. Once again the numbers/letters #FF0000 represent a hexadecimal color. Here is more information about changing your hexadecimal color combinations.
- This element VLINK="#009900" controls the color of the visited links on the whole page. Once again the numbers/letters #009900 represent a hexadecimal color. Here is more information about changing your hexadecimal color combinations.
Hexadecimal Colors
These values represent the hexadecimal value of the Red-Green-Blue (RGB) combination that makes up a color.
Here are some examples of colors you can generate, using different combinations in the hexadecimal value:
White
Yellow
Red
Gray
Blue
Green
Black
Purple
Lt. Blue |
#FFFFFF
#FFFF66
#FF0000
#CC9999
#0000FF
#00FF00
#000000
#CC33FF
#00CCFF |
Use this handy color cube to view and get the hexadecimal color codes.