Why Is Head Used in Html

Why Is Head Used in Html

When writing in HTML, the <head> tag is used to contain specific information about a web page, often referred to as metadata. This information includes things like the title of the document (which is mandatory), scripts or links to scripts, and CSS files.

What should I put as my head in HTML?

HTML <head> Tag. The <head> tag contains metadata (document title, character set, styles, links, scripts), specific information about the web page that is not displayed to the user. Metadata provides browsers and search engines with technical information about the web page.

Why is my closing HTML tag red?

The error may be caused because this is missing. The way it is now whatever is validating this html would assume it’s HTML5. Some of the html tags in the document are no longer part of of the current HTML specification. Adding this statement tells the validator that the page is HTML 4.01.

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.