Posts in current category

HTML5 <head> tag

May 03, 2021 15:00 HTML5

Table of contents


Html5 and head are labels that represent the head of a document and contain information about the document!

An HTML document with a label on the head:

<!DOCTYPE html>
<meta charset="utf-8">


Try it out . . .
(See bottom of page for more examples)

Browser support

HTML5 <head> tag HTML5 <head> tag HTML5 <head> tag HTML5 <head> tag HTML5 <head> tag

All major browsers support the label.

Label definition and instructions for use

The element is a container for all head elements.

The element must contain the title of the document, which can contain scripts, styles, meta information, and much more.

The elements listed below can be used inside the element:

The difference between HTML 4.01 and HTML5

HTML5 no longer supports profile properties.


Property Value Describe
profile Url HTML5 is not supported. /b10>A series of rules that specify a document URL. These rules can be recognized by the browser and accurately read the information in the content properties of the label.

Global properties

The label supports the global properties of HTML.

HTML5 <head> tag

Try it - instance

Use the hashtags in the .lt;head>
This example shows how to specify the default URL and default target for all links on the page using the hashtag.

Use the label in the .lt;;
This example shows how to add style information in the slt;head section.

Use the label in the .lt;head>
This example shows how to link to an external style sheet using a label.


If the label is ignored in the documentation, most browsers automatically create an element. O f course, some won't.

The following browsers have been tested not to automatically create a head element: Android , iPhone , 3.1.3, Nokia 90, Opera , 9.27, and Safari , and 3.2.1.

Related articles

HTML tutorial: HTML header