+ 2

what is the difference in write under [head] or [body ] in html

27th Jul 2018, 6:07 PM
Mohammadreza boozari
Mohammadreza boozari - avatar
2 Respostas
+ 4
the head section contains things like links to stylesheets and such. the body tag has the purpose like the name sais, to be the body of an html document. inside of the body tag are all visible things you see on a website. while you could also change body and head and it wouldnt make any difference, there still is a purpose for this structure: googles algorithm looks at specific tags and elements to detect the content on a website.
27th Jul 2018, 9:57 PM
TrueJu
TrueJu - avatar
+ 1
what you write in the head doesnt show up in the browser unlike codes you write in the body section. so basically the head section is there for the browser to read only reason it contains things like links to CSS and Javascript, the meta tags etc.
30th Jul 2018, 11:56 AM
Odiri Teddie Adamu
Odiri Teddie Adamu - avatar