Posts in current category

HTML5 <title> tag


May 03, 2021 20:00 HTML5


Table of contents


HTML5 is used to define the title, and the label is located within the label. Please refer to the following example:

Define a title for your HTML document:

<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>

<body>
文档内容......
</body>

</html>
Try it out . . .

Browser support

HTML5 <title> tag HTML5 <title> tag HTML5 <title> tag HTML5 <title> tag HTML5 <title> tag

All major browsers support the hashtag.


Label definition and instructions for use

The label defines the title of the document and is required in all HTML documents.

The elements:

  • Define the title in the browser toolbar
  • Provides the title when the page is added to your favorites
  • The title of the page that appears in the search engine results

Tips and comments

Note: There cannot be more than one element in an HTML document.

Tip: If you miss the label, the document is invalid as HTML.


The difference between HTML 4.01 and HTML5

No.


Global properties

Labels support the global properties of HTML.


Related articles

HTML tutorial: HTML header