body tag

<Body>

Explanation

Body tag encloses the entire contents, coding related areas, elements and rest of features placed by the user.
<html><head>Title</head><body>Text</body></html>

Example Code:

Result :

Title

Main Content
  • This tag must be placed between <head> and <html>.
  • It is mandatory to use this tag. Without the body portion a document cannot be formed.
It is available in the previous versions of HTML. But it was deprecated in HTML 4.01.
It supports both Global Attributes and Event Attributes in HTML5.

Limitations:

It will function in all major browsers.

Ask Questions

Ask Question