The <BODY> Tag
In addition to being the container where the
BODY of the document resides, you also define specific
information for the look and feel of the page within the
<BODY> tag. There are several attributes you can include. We
will cover some of them.
Here are some attributes of the BODY tag:
ALINK - Defines the color of the link that
is currently active.
VLINK - Defines the color of a link that has already been
visited
LINK - Defines the color of a link that hasn't been visited
yet.
TEXT - Defines the color of the text.
BGCOLOR - Defines the background color of the HTML document.
BACKGROUND - Points to the filename (URL) of an image to use
as the background.
BGPROPERTIES - When set to 'FIXED', the background image
will not scroll.
LEFTMARGIN - Sets the width of the left margin (pixels only)
TOPMARGIN - Sets the width of the top margin (pixels only)
Here is an example of an HTML document with
some of the BODY attributes being used:
<HTML>
<HEAD>
<TITLE>My home page</TITLE>
<META NAME="Description" CONTENT="My name is Aaron and this
is my home page. Come on by and see what I'm like.">
<META NAME="Keywords" CONTENT="home page, me">
</HEAD>
<BODY alink="white" vlink="brown" link="blue" text="black"
bgcolor="yellow" leftmargin="10" topmargin="10">
My Home Page - I should be in Black.
<a href="1-3.htm">I am a visited link (brown) if you looked
at the last sample page</a>
<a href="1-5.htm">I should be unvisited (blue) unless you've
jumped ahead.</a>
<a href="1-4.htm">I should be the active link (white)</a>
I should be black and the background should be yellow.
</BODY>
</HTML>
I hope this came in useful!
Ask in the forum
if you have any suggestions or comments.