Example

A simple <body>:

Laboratory

description & Usage

<body> tag is used to display the content of an [HTML document]

<body> is a subsection of the <html> tag. It contains all the content that is directly visible, like paragraphs, headings, lists, images, tables, widgets, iframes, etc.

An HTML document only contains one <body> tag.

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<body>

Global Attributes

The <body> tag supports the HTML Global Attributes.

Event Attributes

The <body> tag supports the HTML Event Attributes.

Default CSS

Most browsers will display the <body> tag with the following default style: