Skip to content
RSS
HTML Body Tag Explained

By

Raqueebuddin Aziz

July 19, 2023

Freelance Web Designer & Developer

HTML Body Tag Explained

The body tag is used to mark the user visible content of your site.

Usage

The body tag must be a direct child of the html element and there can only be one body tag per HTML document.

<html>
	<head>
		<title>Hello World</title>
	</head>
	<body>
		<h1>Hello World</h1>
		<p>This is a paragraph.</p>
	</body>
</html>

Conclusion

The body and head tag exists to differentiate b/w the content and metadata of the page.

Leave a comment down below if you have any questions

Post on X Share on LinkedIN Post on Reddit

© 2024 Raqueebuddin Aziz. All rights reserved.