Description:

The <body> tag is used for indicating the main content section of the HTML document. The body tag is placed between the </head> and the </html> tags.

Example Code:
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    The content of the document......
  </body>
</html>
Attributes:
Attribute Definition
background Specifies the URI/URL of a background image. This attribute is now deprecated.
text Specifies the URI/URL of a background image. This attribute is now deprecated.
link Specifies the color of unvisited hyperlink text. This attribute is now deprecated.
alink Specifies the color of active hyperlink text (i.e. when the user clicks on it). This attribute is now deprecated.
vlink Specifies the color of visited hyperlink text. This attribute is now deprecated.
Global Attributes:

The <body> tag also supports the Global Attributes in HTML5

Event Attributes:

The <body> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.