Did you find this useful?
Socialize it today.


HTML Body Element

Thursday, February 09, 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>
<html>
  <head>
    <title>The document title</title>
  </head>
  <body>
    <h1>Main heading</h1>
    <h2>Sub-heading</h2>
    <p>A paragraph.</p>
    <p>Another paragraph.</p>
    <ul>
      <li>A list item.</li>
      <li>Another list item.</li>
    </ul>
    <h2>Another heading</h2>
    <p>Another paragraph</p>
  </body>
</html>

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.



Recommended Books & Training Resources

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