HTML <head> tag
The <head> tag is used to signify the head section of an HTML document. An HTML document has two parts - the head and the body. The head section contains important information about a webpage such as the pages title, the location of stylesheets, and scripts. The body section contains the actual content that will appear on the page.
NOTE: Whatever you place in the head section of an HTML document will not actually be displayed on a webpage, but is important.
NOTE: The <head> tag goes right after the <html> tag.
Attributes
| Attribute | Description | Possible values |
|---|---|---|
| profile | Specifies a URL that contains metadata about the page | theURL |
Standard attributes
dir, lang, xml:lang
For more information on standard attributes, check out our HTML standard attributes reference page.
Event attributes
NONE
For more information on event attributes, check out our HTML event attributes reference page.
Example
Tips & notes
Between <head> and </head> put all the tags that provide some information about an HTML document including <base>, <link>, <meta>, <script>, <style>, and <title>.