The body tag

The body tag of HTML5 holds all the contents of document such as text, images, tables, links etc. The contents of HTML5 body tag are placed in between <body> and </body> and shown in the browser window. As the body tag actually generates the output on the screen so most of the HTML5 tags or elements are used within body tag.

Check the following lines of code for getting an idea about how to write the HTML5 body tag:

<body>
HTML5 page content
</body>

For example, we have given below a small HTML5 code snippet with body tag for creating a simple web page:

<!DOCTYPE html>
<html>
<head>
<title>HTML5 page title</title>
</head>
<body>
HTML5 page content
</body>
</html>
Press CTRL+D to bookmark this page - The body tag

Your comment

(required)

2 + = 6