0
Why we use it?
3 Answers
+ 4
Because without <body> we would look stupid like an octopus đ
Anyway, programming languages have rules, because computers can only follow precise instructions. It is a rule, how a HTML document structure must be composed, and the <body> tag is an essential element there, it contains everything that is shown to the viewer of the page.
+ 2
Yep, Tibor Santa is right.
We need the <body> tag since it is vital and helps to structure a HTML page properly.
A typical HTML page structure is this:
<html>
<body>
</body>
</html>
All the main content that will go on the page goes under the <body> tag.
It is also a way of making code more readable (well in my opinion mostly).
+ 2
body tag is the body part of the website
In the body part we write the view things writing in that contains show in the users
example:
<html>
<head>
<!--In this part use for linking the stylesheet and make a title and etc.. -->
<title>Hai</title>
</head>
<body>
<p>Hello world</p>
</body>
</html>