Search Help:  
 
Enter keywords to search help.

How do I change the text and background colors?

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> The main part of the document goes here. </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 five more elements to this tag.

  1. 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 hexadecimal color #FFFFFF.
  2. This element, TEXT="#000000", controls the color of the text on the whole page. Once again the numbers/letters #000000 represent a hexadecimal color.
  3. 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.
  4. This element ALINK="#FF0000" controls the color the links will change to, after a user clicks on the link. Once again, the numbers/letters #FF0000 represent a hexadecimal color.
  5. 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.

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 that you can generate, using different combinations in the hexadecimal value:

  • White: #FFFFFF
  • Yellow: #FFFF66
  • Red: #FF0000
  • Gray: #CC9999
  • Blue: #0000FF
  • Green: #00FF00
  • Black: #000000
  • Purple: #CC33FF
  • Lt. Blue : #00CCFF

Use this handy color cube to view and get the hexadecimal color codes.

Was this article helpful?

Yes   No