What's the function of <head></head> tags in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What's the function of <head></head> tags in HTML?

7th Apr 2018, 10:14 AM
Ahmad Mustapha Sadauki
Ahmad Mustapha Sadauki - avatar
5 Answers
+ 13
Head tag is multi functional. It contains the title of a document, metadata, script information, styling sheets e.t.c.
7th Apr 2018, 10:17 AM
Arushi Singhania
Arushi Singhania - avatar
+ 5
Head is used for everything actually, to link, to use internal CSS style sheet, JS scripts also (not sure about this)
7th Apr 2018, 11:14 AM
Master Assassin
Master Assassin - avatar
+ 3
it just a nest for metadata, title, favicon, internal css, and internal js INFO: you don't need to write <head> tag again in your html code because browser automatically describe all tags inside <head> tag in their place.
8th Apr 2018, 11:00 AM
Amethyst Animion
Amethyst Animion - avatar
+ 1
For the CSS classes and the title, and a lot of other things.(also "script" optionally)
7th Apr 2018, 3:37 PM
Paul Grasser
Paul Grasser - avatar
0
Open and close tags of the Header in your HTML documents, but can be used for a wealth of things
7th Apr 2018, 10:32 PM
Nathaniel Cole
Nathaniel Cole - avatar