1.6. BODY-Creating the Main Document

HTML documents should have exactly one BODY section defining the main contents of the page. The only exception is a document that uses frames. In such a case, the top-level document simply defines the general layout and specifies which documents go in which frames, omitting the BODY altogether. See Chapter 4 (Frames) for more detail. In nonframes documents, the BODY element contains the text and HTML markup constituting the main document. Because the TITLE portion of the HEAD element appears on the title bar of the window, not in the page itself, and because that title does not always appear on printouts of the document, the BODY normally starts with a “title,” often using the largest heading size (H1). The ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.