By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTML Body Tag

How to use the body tags of HTML, and a list of allowed attributes.

Edited: 2014-12-28 05:50

The HTML body element is used to markup the content of HTML pages, and begins the first section on a page.

The body element is a sectioning root, meaning that if no other sectioning element is present, any sections included on the page, will count as subsections of body.

The body is also the second element in HTML, and child of html


Attribute: Value: Description:
Attributes Global Attributes Global, Event, I18n

Using the body element

The body section begins below the head section, pages should always have a body section.

The below example shows where the body section is placed.

<!DOCTYPE html>
<html lang="en">

    <title>Body Example</title>

    <h1>Body Example</h1>
    <p>This is the first section on the page.</p>


Brugbart Vision!