previous | start | next

The HTML Document

The originators of the Web (reportedly) never envisaged that humans would write HTML "by hand". However, it's so easy that using the various "Web Authoring" packages seems tedious for many of us!
 
A HTML document (or page) consists of two mandatory parts, a HEAD and a BODY. The HEAD section must (at least) contain a document TITLE, and should normally be preceded by a "document type" specifier. The overall document structure looks like:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
    <TITLE>Title of Document</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">

HTML document (or page) content goes in here.

</BODY>
</HTML>
Note the "start" and "end" tags for the various sections of the document. Note also that the author can use any convenient layout for the HTML document: it's ignored by the browser!
 


previous | start | next