Body element
The HTML body element contains the content of a document intended for display in a browser.
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 →
Also covered in
What to know first
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- HTML tagAn HTML tag is angle-bracket-delimited markup that identifies, structures, or marks the boundary of an element in an HTML document.
Related concepts
- HTML elementpart of · An HTML element is a structural or semantic unit of an HTML document, defined by markup and represented in the document tree.
- flex containerconfigures · A flex container is an element whose children are laid out as flex items according to the CSS Flexible Box Layout model.
- paragraph elementhas part · An HTML paragraph element is a p element representing a distinct block of related text.
- style propertyconfigured by · A style property is a named setting or interface attribute that specifies or exposes a presentation characteristic of an element or view.
- HTMLpart of · HTML is the standard markup language for structuring content and elements in documents on the web.
Questions about body element
What is body element?
The HTML body element contains the content of a document intended for display in a browser.
Which Manning books explain body element?
Web Design Playground, Second Edition and Build a Website with ChatGPT.
What should I know before learning body element?
Manning books that teach body element usually introduce HTML, CSS and HTML tag first.
What is body element part of?
Body element is part of HTML element. An HTML element is a structural or semantic unit of an HTML document, defined by markup and represented in the document tree.
What are the parts of body element?
Body element includes paragraph element.
What is body element also called?
Body element is also called <body> tag.
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.

