HTML <body> Tag Demo

The <body> tag defines the main content area of a webpage. Everything you want displayed in the browser window should be placed inside the <body> tag.

Example Code:

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <h1>Hello, World!</h1>
    <p>This content is inside the body tag.</p>
  </body>
</html>

Live Output:


Hello, World!

This content is inside the body tag.


📌 Note: The <body> tag is required in every HTML document. It comes after the <head> section and contains everything visible on the page (text, images, links, etc.).