HTML body - how to use <body> tag

The <body> tag defines the content that is displayed on the browser and visible to the user. In contrary, the <head> tag contains meta information, styling and script information. The <body> tag is the main tag that contains all the content and other tags within the document. Note that there can be only 1 <body> tag.


The body tag supports the global and event attributes.


<html> <head> <title>Learn</title> </head> <body> <header> <nav></nav> </header> <section> <p>some data</p> </section> <footer> </footer> </body> </html>