The <body> tag

<body> contains all of a document's visible content — text, images, forms, and anything else the user sees.

Syntax

<body>...</body>

Example

<body>
  <header>...</header>
  <main>...</main>
  <footer>...</footer>
</body>

Notes

  • There must be exactly one body per document, placed after head.
  • Old attributes like bgcolor, text, and link are deprecated — style with CSS instead.

Related tools