The Structure of an HTML Document

All HTML documents should start with the <HTML> tag, although they will work if this is absent. Each document is divided into:

The HEAD element contains information about the document, while all the text to be read and displayed is in the BODY. The most important item in the HEAD is the TITLE, which shows up in the title bar of the Netscape browser window. Your choice of title is important as this often is used by search engines such as Lycos, to identify the contents of a document. The <TITLE> tag has a corresponding </TITLE> tag.

Thus, the structure of a basic HTML document is:

------------------------STARTS
<HTML>

<HEAD>
<TITLE>This is an HTML Document</TITLE>
</HEAD>


<BODY>
This text will appear on the Web page.
</BODY>

</HTML>
------------------------ENDS


[Forward] Go to Exercise 1 now
[Back] Back to An Overview of HTML
[Up] Up to the Contents page