<title>


HTML <title> Tag

Instance

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

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

</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

##All major browsers support the <title> tag .


Tag definition and usage instructions

<title> The tag defines the title of the document and is required in all HTML documents.

<title> Element:

    Define the title in the browser toolbar
  • Provide the title when the page is added to favorites
  • Page title displayed in search engine results

Tips and Notes

Notes:There cannot be more than one < in an HTML document title> element.

Tip: If you omit the <title> tag, the document is invalid as HTML.


Differences between HTML 4.01 and HTML5

None.


Global attributes

<title> tag supports HTML global attributes.


Related Articles

HTML Tutorial: HTML Header