Site hosted by Angelfire.com: Build your free website today!

HTML TUTORIAL by Geoff McCausland

THE BODY SECTION & COMMENTS

THE BODY SECTION <BODY> </BODY>

This is the Main part of the HTML Document. Almost everything that goes in this section will be displayed when you look at the webpage (except for comments).

Inside the BODY tag you can specify the image to use for a background and what colors to use for text, links, and background.

BACKGROUND

This attribute is used to define the background image to use. You can define a large image to use that covers the entire screen or you can choose a small one and let it "tile"

<BODY BACKGROUND="whatever.gif">

TEXT AND LINK COLORS colors are defined using the common name or the RGB value (vlink is visited links, alink is active links.

<BODY TEXT="GREEN" LINK="BLUE" VLINK="PURPLE: ALINK="RED">

or

<BODY TEXT="#00FF00" LINK="#0000FF" VLINK="#FF00FF" ALINK="#FF0000">

LINK COLORS

COMMENTS <!-- -->

These are notes to yourself for later when you come back to make changes to your webpage. I like to use one whenever I check the page for broken links.

<!-- last checked 10/5 -->

Comments will make it easier to find different sections of your page.

If you sign up for linkexchange or for a Webring they will usually give you the code with comments surrounding it.

<!-- start linkexchange code -->
.
.
.
<!-- end linkexchange code -->

Previous Page 1 | 2 | 3 | 4 | 5 | 6 Next Page