WebCom Home Page
WebCom
WEBCOM HTML GUIDE

WEBCOM'S OWN GUIDE TO HTML
WebCom
Resources


HTML Guide
   · Overview
   · Tags
   · Images
   · Forms

Resources
   · Web Primers
   · HTML Guides
   · HTML Validators
   · Publishing Guide
   · Publicize Your Site
   · Mac Web Tools
   · Windows Web Tools
   · Icons and Graphics
   · Other Resources

Control Panel Login
Customer Support

Contact Us

About WebCom

 
Structure of a HTML Document

This page is part of the WebCom Web Publishing Guide. It explains how HTML documents are organized, and the purpose of each section within a HTML document.

These two sections are enclosed within the <HTML> and </HTML> tags.

Topics:
Head Section
Body Section
Tags Ending a HTML Document


Overview

HTML documents are divided into two sections: a "head", and a "body". The "head" contains information about the document itself, such as the title, indexing information, and ownership. The "body" consists of the document itself, the images, text, and hotlinks to other documents and files displayed by the Web browser.


Head Section

<HTML>
<HEAD>
<TITLE>Web Communications HTML Guide: Head Section</TITLE>
</HEAD>

The head section is opened and closed by the <HEAD> and </HEAD> tags. Information belonging in the head section should be placed between these two tags. The tags in the example above form a minimal head section, and should be included at the beginning of every HTML document.

Information about individual tags within the head section can be found by clicking on the highlighted tags. Advanced uses of the head section (such as indexing) are covered in optional head tags.


Body Section

...
</HEAD>

<BODY>

<H1>Introduction</H1>

The body section is opened and closed by the <BODY> and </BODY> tags. The text and images of the document itself, to be displayed by the Web browser, should be placed within these two tags.

The opening tag should be placed immediately after the closing head tag (</HEAD>), and before any images or text included in the document itself, as in the example above. A matching </BODY> must be placed at the foot of the page. This tag ends the body section, and should be placed at the end of the document, after any images or text included in it.


Tags Ending a Page

</BODY>
</HTML>

</BODY> ends the portion of the page containing the document itself, and should be placed after any text or images that will be displayed by the Web browser. </HTML> ends the page itself. The head and body sections are enclosed within the opening <HTML> and closing </HTML> tags.



WebCom Home
Contact us by email:info@webcom.com
phone: 1-888-8WEBCOM (1-888-893-2266)
Copyright © 1994 - 2001 Web Communications.   A Member of the Verio Group.