View video tutorial
HTML Body
HTML
The <body> defines the documents body.
The <body> tag defines the main content of an HTML document.
Document body
Displayable area in the document is defined by <body> tag.
An HTML document can only have one <body> tag.
<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>
Click on the "Try it Now" button to see how it works.