HTML

The <body> defines the documents body.

Document body


Displayable area in the document is defined by <body> tag.

Only one <body> tag can be in a document.

<body> tag is a container of all viewable elements.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<!DOCTYPE html>
<html>
<!-- Example: body Tag -->
<head>
    <title>Body Tag Example</title>
</head>
<body style="background-color:#fee5e5;">
    <h1>Body Tag Example</h1>
    <p>Displayable area in the document is defined by body tag.</p>
    <p>The body tag is a container for all visible elements.</p>
</body>
</html>
Try it Now »

Click on the "Try it Now" button to see how it works.