Read HTML The Definitive Guide Online
Authors: Chuck Musciano Bill Kennedy
2.2 A First HTML Document
2.4 HTML Skeleton
2.4 HTML Skeleton
Notice, too, in our simple example source that precedes
Figure 2.1
, the HTML document starts and ends with and tags. Of course, these tags tell the browser that the entire document is composed in HTML. The HTML standard requires an 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.
[, 3.5]
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. [, 3.6]
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
2.3 HTML Embedded Tags
2.5 The Flesh on an HTML
Document