Skip to Main Content
HTML & XHTML: The Definitive Guide, 6th Edition
book

HTML & XHTML: The Definitive Guide, 6th Edition

by Chuck Musciano, Bill Kennedy
October 2006
Intermediate to advanced content levelIntermediate to advanced
680 pages
21h 44m
English
O'Reilly Media, Inc.
Content preview from HTML & XHTML: The Definitive Guide, 6th Edition

The Document Body

The document body is the meat of the matter. It's where you put the contents of your document. The beginning <body> and end </body> tags delimit the document body.

The <body> Tag

Within HTML 4 and XHTML, the <body> tag has a number of attributes that control the color and background of your document. Various browsers have extended the tag to give even greater control over your document's appearance.

Anything between the beginning <body> and end </body> tags is called body content. The simplest document might have only a sequence of text paragraphs within the <body> tag. More complex documents might include heavily formatted text, graphical figures, tables, and a variety of special effects.

Because the browser can infer the position of the <body> and </body> tags, they can safely be omitted from an HTML, but not an XHTML, document. Like the <html> and <head> tags, we recommend that you include both the <body> and </body> tags in your HTML documents, too, to make them more easily readable and maintainable.

The various attributes for the <body> tag can be loosely grouped ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CSS Master, 3rd Edition

CSS Master, 3rd Edition

Tiffany B Brown

Publisher Resources

ISBN: 0596527322Errata Page