Home | Previous | Next Introduction to the Web And HTML

Introduction to HTML

Basic Structure of an HTML Document

All HTML Documents are structured -- there are rules about where tags can and cannot go. The basic outline of an HTML document is as follows


-- <HTML>
|   -- <HEAD>
|   |  <TITLE> Document Title </TITLE>
|   |  ..... other HEAD-level elements
|   -- </HEAD>
|   -- <BODY>
|   |  .... headings, text -- the body of the document ...
|   |   ... 
|   -- </BODY>
-- </HTML>

All documents follow this outline model -- see, for example, our friend example1.html.

Content Rules

In general, elements that go in the HEAD cannot go inside the BODY. HEAD content is called document meta-content -- it contains information about the document, and does not contain information to be displayed as part of the document


Home | Previous | Next Introduction to the Web And HTML