HTML <body> tag defines the main content of an HTML document which displays on the browser. It can contain text content, paragraphs, headings, images, tables, links, videos, etc.

The <body> must be the second element after the <head> tag or it should be placed between </head> and </html> tags. This tag is required for every HTML document and should only use once in the whole HTML document.

Syntax

<body> Place your Content here........</body>  

Following are some specifications about the <body> tag

DisplayInline
Start tag/End tagBoth start and End tag
UsageStructural

Example

<!DOCTYPE html>  

<html>  

<head>  

 <title>Body Tag</title>  

</head>  

<body>  

 <h2>Example of body tag</h2>  

 <p>This paragraph is written between the body tag</p>  

</body>  

</html>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *