Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

 HTML Guide logoHomeThe Basics of HTMLTables, Frames and MultimediaHTML Extensions, Forms and ScriptsTips, Tricks and ToolsTips, Tricks and ToolsShop for books on HTML

The Body tag is the tag that your whole page is in. In case you forgot, here is what a basic HTML page looks like:

In this section...
Beginning
Text Options
The <Body> Tag
Links
Lists
Pictures
Marquees

<html>
<head>
<title>title of page</title>
</head>
<body>
body...
</body>
</html>

Like a lot of other tags, the <body> tag also has attributes. These Attributes are:

<body background="filename" bgcolor="hex triplet" text="hex triplet" link="hex triplet" vlink="hex triplet">

These Attributes enable you to color your text, your links and your background.
If you want the background of your page to be a picture, write the picture's filename instead of "filename." If not, simply erase the background="filename" attribute. The bgcolor="hex triplet" is if you want your background to be a solid color. Also, if you choose to have a picture background, you should also include a solid color tag for non-graphic browsers. Put the hex value of the color you want instead of "hex triplet." All the text in your page, except the text between <font>...</font> tags, will turn that color.
Note: If you aren't familiar with hexes, simply write the color you want: blue, red, green, white, black, pink, purple, yellow, aqua, silver, gray or orange.
The text="hex triplet" is the color of the text of your page (again in hexes or in color names), the link="hex triplet" determines the color of your links, and the vlink="hex triplet" determines the color of the links the visitor has already visited.

Mailing List - Receive weekly website design tips right to your mailbox FREE   





Send mail to iddo-h@geocities.com with questions or comments about this web site.
Copyright © 1999 The Complete HTML Guide