Body tag
-
The Body tag
is the html command that opens the section that contains within it all the content that your visitors should see. The structure of an HTML
page should be like this:
<HTML>
<HEAD>
[Metatags and stuff go here. See
Head Section]
</HEAD>
<BODY>
</BODY>
</HTML>
Importance of Body Tag and structure for SEO
If all those tags are not present on the page in that order, many search engine spiders will not be able to follow the
code and will index the page incorrectly, even though some
web browsers will show the page properly.
You will be amazed at what browsers can figure out.
Body tag commands
Certain commands can be put in the body tag and will apply to the entire document. This can save codes and thus help
improve the optimization of the page, since search engines "like" pages with less junk code in them and more text. It is
also the only place (without CSS) that you can specify a background color or image, top and left margins and other nice
things.
Example:
<body background="bkd.gif" bgcolor="#White" text="Black" link="Blue" vlink="Blue" alink="Blue" topmargin="0" leftmargin="0">
That would make a page with background specified in bkd.gif, white background, black text, all links in blue and top and
left margins of 0 pixels. You can also put "onload" commands in the body to tell the page to run javascripts and the
like when it loads. However, that's outside the scope of an SEO glossary or manual.
The body is where you put all the text of the content that should be optimized as explained in On Page Optimization