liveBook · Manning

Body element

The HTML body element contains the main content of a document that is rendered in a browser.

How 2 Manning books explain it

Web Design Playground, Second Edition

A body element is the HTML document component that contains the page content rendered in the web browser.

How it is used
Places page text and HTML tags where the browser displays the site’s visible content.
How deep it goes
Defines opening and closing tags, distinguishes body from head, and demonstrates visible text while deferring whitespace and paragraph behavior.
Examples
Uses a minimal HTML page containing “Hello HTML World!” to connect body content with its visible browser result.
What you can do after
Build it from scratch by placing visible text and HTML elements inside the body element.

Read how Web Design Playground, Second Edition explains body element →

Build a Website with ChatGPT

The body element is the HTML element containing a document's displayed content.

How it is used
Uses the body element as a page-wide styling target for background and text color.
How deep it goes
Covers practical CSS customization and stops short of explaining the element’s HTML structure in detail.
Examples
Demonstrates background-color changes on event sign-up and recipe pages.
What you can do after
Apply it via CSS by changing page colors, width, spacing, and measurement units.

Read how Build a Website with ChatGPT explains body element →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.