LOGBOOK

HELP

Quiz Entry - updated: 2026.06.20

What is the purpose of the <body> element?

The <body> marks the start and end of the visible content — everything the browser actually displays in the window lives between <body> and </body>.

While the <head> holds behind-the-scenes information, the <body> is the part the user sees. The browser renders only what falls between the opening and closing body tags, and a document may have exactly one <body>.

Inside it you place all the content that makes up the page:

  • Text content such as paragraphs and headings
  • Media like images and videos
  • Interactive elements such as forms and buttons
  • Scripts as well — and this is a useful detail: a <script> placed in the body is executed at the exact position it appears as the browser reads the document top to bottom. That is why developers often put scripts near the end of the body, so the visible content loads first.

From Quiz: WEBT / HTML Documents | Updated: Jun 20, 2026