HTML: The Definitive Guide

Previous Chapter 2
HTML Quick Start
Next
 

2.4 HTML Skeleton

Notice, too, in our simple example source that precedes Figure 2.1, the HTML document starts and ends with <html> and </html> tags. Of course, these tags tell the browser that the entire document is composed in HTML. The HTML standard requires an <html> tag for every HTML document, but most browsers can detect and properly display HTML encoding in a text document that's missing this outermost structural tag. [the section called "The <html> Tag"]

Like our example, all HTML documents have two main structures: a head and a body, each bounded in the source by respectively named start and end tags. You put information about the document in the head and the contents you want displayed in the browser's window inside the body. Except in rare cases, you'll spend most of your time working on your HTML document's body content. [the section called "The <head> Tag"] [the section called "The <body> Tag"]

There are several different document header tags you may use to define how a particular document fits into a document collection and into the larger scheme of the Web. Some nonstandard header tags even animate your document.

For most documents, however, the important header element is the title. Every HTML document is required by the HTML standard to have a title. Choose a meaningful one; the title should instantly tell the reader what the document is about. Enclose yours, as we do for the title of our example, between the <title> and </title> tags in your document's header. The popular browsers typically display the title at the top of the document's window onscreen. [the section called "The <title> Tag"]


Previous Home Next
HTML Embedded Tags Book Index The Flesh on an HTML Document

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
This HTML Help has been published using the chm2web software.