HTML Body Tag
An HTML body tag is simply a the word "body" bracketed by less than "<" and greater than ">" characters. Everything between the two HTML body tags <body> and <body> is part of the HTML body element. The HTML body is the the main part of the web page and the bulk of the web page where viewable information is stored. The HTML body is the part of the web page where elements containing content is placed such as paragraph elements, tables, forms, images, headers, and lists.
An example body section:
<h2 style="text-align: center">HTML Document Structure</h2>
This is a sample HTML body section.
The HTML body section is included inside the HTML tags such as <html> and </html>.
The BODY Element Tags and Attributes
The HTML body tags and attributes are:
- <body> - Designates the start of the body.
- </body> - Designates the end of the body.
In HTML documents that contain frames, the "body" element is required and must be inside the "noframes" element. The body element is required in HTML documents that do not contain frames.