Description

The HTML <body> element represents the content of an HTML document. There can be only one <body> element in a document.

CSS Display:block

Syntax

<body> <h1>Welcome</h1> <p>Content goes here.</p> </body>

Examples

Body with Content
<body> <header> <nav>...</nav> </header> <main> <h1>Hello World</h1> </main> </body>
The body holds all the visible structure of your page.

Notes

There can only be one <body> element per document. All visible content—such as headings, paragraphs, images, links, tables, and lists—must be placed inside this tag.

In modern web development, older attributes like bgcolor, text, or link are obsolete and should no longer be used; all styling of the body should be done using CSS.

Related Tags

Last updated: 8th April 2026