HTML <head> tag

Updated: 08/09/2017 by Computer Hope

HTML head tagWhen 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), as well as scripts or links to scripts, and CSS files. The following sections contain information about the <head> tag, including elements that are stored within it, as well as related attributes and browser compatibility.

Elements kept inside the <head> tag

Deprecated attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The <head> tag only has one unique attribute that is now deprecated. The following table shows that attribute, as well as a description of what it did.

Attribute Description
profile Designates the URL of a document containing the detailed information about a <meta> tag's content attribute.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
All versions All versions All version All versions All versions

Browser, Compatibility, Script, Title, URL