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
The following is a screenshot of the title tag position of the source code of the PHP Chinese website (Located within
) ##Example:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>我是标题,我在title标签内,我显示在浏览器最顶部标题地方</title> </head> <body> </body> </html>
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!