Body

The body of a webpage

The children of the body element are rendered onto the webpage, so if we need any content to be visible to the user, place it inside the body element. So it is like the parent or root element of display elements.

body_example.html
<body>
    <h1>I am a heading</h1>
    <p>I am a paragraph</p>
</body>

The head and body are crucial elements of a webpage. The metadata and visible content goes inside them, which are the most needed data for any webpage.

Last updated

Was this helpful?