The HTML Book
  • The HTML Book
  • Basic Elements
    • Head
    • Body
    • H1
Powered by GitBook
On this page

Was this helpful?

  1. Basic Elements

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.

PreviousHeadNextH1

Last updated 4 years ago

Was this helpful?