What does head tag actually do?What's the importance of it? Please and thank you. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does head tag actually do?What's the importance of it? Please and thank you.

Can someone explain the importance of the <head></head> tags more in depth?

29th Oct 2019, 1:13 AM
Daniel Mills
Daniel Mills - avatar
1 Answer
+ 9
Head tag is multi functional element in html. It contains some important information about the web pages that includes the title of a document, metadata, script information, internal styling sheets etc. You may know about script information i.e. the client side scripts or JavaScript and the style sheets i.e. Internal CSS and title i.e. title of the web page. Now we come to the metadata. Metadata is data (information) about data. Metadata will not be displayed on the page, but will be machine parsable. Meta elements are used to specify page description, keywords, author of the document, last modified, and other metadata. The metadata is used by browsers to display content or reload page, search engines which uses keywords, or other web services or take control over the viewport.
29th Oct 2019, 4:50 AM
Nova
Nova - avatar