What is the use of head AND body. Don't you just need one?????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of head AND body. Don't you just need one??????

???

1st Jul 2016, 2:36 AM
Bob John
Bob John - avatar
6 Answers
+ 9
the head element is used to preload and determine the language the page will be displayed in, a general style and the title and many other pre loadinh stuff. everything else that is visble in the page is put into the body element.
1st Jul 2016, 2:44 PM
‎أيوب المنتصر‎
+ 7
Well, if you do well without your head then you may not need one :)
1st Jul 2016, 2:45 AM
ZinC
ZinC - avatar
+ 5
You definitely need your head and you body. Can your body survive without the head or vice versa? It all makes sense.
6th Jul 2016, 9:39 PM
Benaiah Youquoi
Benaiah Youquoi - avatar
+ 2
The head in html is used to specify the title of the Web page which will be displayed at the title bar. Body contains all the contents of the page
1st Jul 2016, 5:26 AM
Midhun Mathew
0
You will need both the head and body element.
19th Jul 2016, 6:59 AM
Isaac
Isaac - avatar
0
You obviously wouldn't want certain information to be displayed to your user interface. But again, you need to define such information in order to validate (declare) your standards, link sources, meta infos, descriptions, predefined components, etc. Now you wont want all those definitions to be display right before those viewing your site, would you? That's where the head tag comes in handy. It can stored these values and displayed them to SEOs, DOM manipulations, Web Servers, etc.. and at the same time, your viewers wont see whats behind the curtains.
4th Dec 2019, 1:20 AM
Franklin Davis Jr
Franklin Davis Jr - avatar