How to use title tag in html5

清浅
Release: 2020-10-13 10:03:45
Original
6771 people have browsed it

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>
Copy after login

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

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

How to use title tag in html5

##Example:

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template