HTML5 <head> Tag


A simple HTML document, with a title:

<title>Title of the document</title>

The content of the document......


Try it yourself »

Definition and Usage

The head element is a container for all the head elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more.

The following tags can be added to the head section: <base>, <link>, <meta>, <script>, <style>, and <title>.

Differences Between HTML 4.01 and HTML5

The profile attribute is not supported in HTML5

Tips and Notes

Always specify a title for the document!

Standard Attributes

The <head> tag also supports the Standard Attributes in HTML5.