Body
Body
The<body>
tag defines the main content of the HTML document that will be directly visible on your web page. This body tag <body>
contains all the content of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
Examples
Using <body>
to create a simple webpage.
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Syntax
<body></body>
Tips
- There is only one
<body>
element in an HTML document. - The
<body>
tag should be placed under the closing</head>
tag. - All the contents of an HTML document, such as headings, images, lists, etc should go inside the
<body>
tag. - No content should be written after the closing
</body>
tag.
Additional Information
For more information, see http://www.w3schools.com/tags/tag_body.asp.
Found a bug in the documentation? Let us know at support@code.org.