May 03, 2021 HTML5
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>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body>
文档内容......
</body>
</html>
All major browsers support the label.
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:
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. |
The label supports the global properties of HTML.
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;head.gt;
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.
Note
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.
HTML tutorial: HTML header