HTML body tag

HTML <body> element contains all the elements that represent the visualized structure of the website.

<body>
 <p>What we write in the body tag is visible in the site.</p>
</body>

</>

What we write in the body tag is visible in the site.

Tag omission

End tag (</body>) may be omitted.

Global Attributes

All the global attributes are applicable on the body element.

There are many elements in the body element. Basic elements have been given below.

p, h1-h6, a, audio, video, nav, aside, main, article, img, iframe.



Was this article helpful?

 

Email:

Message: