HTML Body Element

Thursday, February 9, 2012

The <body> element is used to define the document's body. Other elements are used within an opening and closing <body> tag. The <body> element contains all the contents of an HTML document, such as paragraphs, heading, hyperlinks, images, tables, lists, and more. You must use this element and it should be used just once in a document. It must start immediately after the closing head tag and end directly before the closing html tag. Here is an example, simple HTML document:

<!DOCTYPE html>
    <title>The document title</title>
    <h1>Main heading</h1>
    <p>A paragraph.</p>
    <p>Another paragraph.</p>
      <li>A list item.</li>
      <li>Another list item.</li>
    <h2>Another heading</h2>
    <p>Another paragraph</p>

Did you find the page informational and useful? Share it using one of your favorite social sites.

Recommended Books & Training Resources

Creating Web Pages Simplified HTML CSS and JavaScript Editor HTML CSS: The Complete Reference