|
|
 |
HTML Tutorial
What are the body attributes?
To make a "theme" for the format of your site, you must use link colors, text
colors, and body colors (as well as background images for pages). This is done
in the body tag. The body attributes can make a web page look totally different
if setup using different Hexadecimal Colors. The link colors on this page are
maroon for a link, blue for an active link, and red for a link that you have
visited before. The background is an image that is tiled on the browser, and
text and images are on top of the image. Here is an example of the attributes of
this page.
<body text="#000000" bgcolor="#FFFFFF" link="#AA0000" vlink="#FF0000"
alink="#000080" background="image.gif">
What does all that mean? Well, let's break it down into all the pieces, and it
should be clear from the information you have from the Hexadecimal Color System.
The text="#000000" denotes to the browser, that the default color for text will
be black. Note the the equals sign, and the quotes around the color code. The
bgcolor="#FFFFFF" means that the background is going to be white, unless an
image is applied. The link="#AA0000" means that the link color will be a maroon
color. The vlink="#FF0000" means that the links that you have been to, or the
"visited links" will be blue. Next, the alink is the "active link" or the link
that has just been clicked by the mouse. Finally, the background="image.gif"
attribute means that the white background noted in the bgcolor attribute is now
override by the image image.gif.
|
|