I don’t understand why we should use when it cant even be displayed?
While you’re correct in that the information inside the
<head> tags doesn’t get directly displayed, they contain other useful information for the browser. For example, one would put their
<link> tags in the head, which link CSS and JS files to the HTML, which gives your site style and functionality respectively. Similarly, you may put
<meta> tags in the head, which tell the search engine about the website, and thus increase the SEO (search engine optimisation) of your website. Other useful elements include the
<title>, which gives your page a title on the browser tab. This article goes more in depth into the head tag and other elements which can be used within it.
Thanks for the help, this topic stumped me for a little bit