Used to mark the beginning and the end of the contents of the page. All markup tags, except the ones listed to appear in the header section, are contained between these two tags.
<html> <head> <title>Some Title</title> </head> ==>> <body> . . . ==>> </body> </html>
The use of this tag is optional. You can leave it off if you want. I like having the definition in my pages so I use it. Of course, if you want to use any of the attributes then you have to use the tag.
<body background="paper01.gif">
The example assumes the image is in the same directory where the page is stored. Background images need to be used cautiously.
<body bgcolor="#FFFFFF">
This renders a white background for the page assuming the reader is viewing the page visually, with a color-capable device and has not specified their own color scheme through their browser's options.
It also adds attributes to allow you to specify the color of the text and the links using TEXT, LINK, ALINK and VLINK. These attributes use the same color notation as the BGCOLOR attribute. For example:
<body bgcolor="#000000" text="#FFFFFF" link="#FF0000" alink="#00FF00" vlink="#0000FF">
This would create white text (text=) on a black background (bgcolor=). The unvisited links (link=) would show as red, the link would turn green when it was selected (alink=) and turn blue after the link had been visited (vlink=).
You can also add the background attribute with the others.
In addition to these, Microsoft has added the BGPROPERTIES attribute which only allows you to specify fixed. The purpose of this attribute is to create a non-scrolling background image. As an example:
<body background="mylogo.gif" bgproperties="fixed">
The Rusk Family . . . "the Legend
Continues"
All contents copyright © 1996, 1997 Michael T. Rusk
All rights reserved.
Revised: December 03, 1997 10:44 -0500
URL: ./htmlgd/tagbody.html