title"."/> title".">

Home  >  Article  >  Web Front-end  >  How to use title tag in html5

How to use title tag in html5

清浅
清浅Original
2019-05-05 11:14:336773browse

How to use title tag in html5

There can only be one title tag displayed as the only title in an html web page, so why set the title tag? Because when the web page has a title, the viewer will know the web page at a glance related content.

Syntax of the title tag

<title></title>

The title element is required in all HTML documents. Its role:

Define the title in the browser toolbar

Provide the title when the page is added to favorites

The page title displayed in search engine results

Title tag placement position

Located in 93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1

The following is a screenshot of the title tag position of the source code of the PHP Chinese website (Located within 93f0f5c25f18dab9d176bd4f6de5d30e9c3bca370b5104690d9ef395f2c5f8d1)

How to use title tag in html5

##Example:

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>我是标题,我在title标签内,我显示在浏览器最顶部标题地方</title>
  
</head>
<body>
</body>
</html>

Rendering:

How to use title tag in html5

The above is the detailed content of How to use title tag in html5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn