Define a title for your HTML document:
<!DOCTYPE html>
<html>
<head>
<title>HTML Elements Reference</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Try it Yourself »
The <title>
tag defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab.
The <title>
tag is required in HTML documents!
The contents of a page title is very important for search engine optimization (SEO)! The page title is used by search engine algorithms to decide the order when listing pages in search results.
The <title>
element:
Here are some tips for creating good titles:
So, try to make the title as accurate and meaningful as possible!
Note: You can NOT have more than one <title>
element in an HTML document.
Element | |||||
---|---|---|---|---|---|
<title> | Yes | Yes | Yes | Yes | Yes |
The <title>
tag also supports the Global Attributes in HTML.
HTML tutorial: HTML Head
HTML DOM reference: Title Object
Most browsers will display the <title>
element with the following default values:
title {
display: none;
}
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!