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:

HTML5 page content

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

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

Your comment


2 + = 6