Why do we use <body> in our HTML document?
If we want to store something. We need a Container. In the HTML document we used <body> tags to store our data in a web page. So we can say that, The <body> tag contains all the content or data of HTML documents .
Syntax:
<body>
<p>
Hay hello web developer!!!
</p>
</body>
Here we see that <body> tags contain a <p> tag. There are many more tags used in <body> we will learn this latter.
NOTE: We can use only one <body> tag in a html document.
Example:
<!DOCTYPE html>
<html >
<head>
<title>Basic get in </title>
</head>
<body>
<p>
Hay hello web developer!!!
</p>
</body>
</html>
Post a Comment