tag, in the title tag."> How to use html title tag-Front-end Q&A-php.cn

How to use html title tag

青灯夜游
Release: 2019-05-26 17:57:08
Original
5169 people have browsed it

The title tag in html is used to define the title of the web page, which is displayed at the top of the browser. In addition, the title tag is placed within the

tag, in the title tag.

How to use html title tag

#html How to use the title tag?

html The title tag defines the title of the document and is located within

.

Note:Browsers use titles in a special way, and usually place them on the title bar or status bar of the browser window. Likewise, when a document is added to a user's links list or favorites or bookmarks list, the title becomes the default name for the link to the document.

Syntax

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

● Display in search engine results Page title

● Title tag placement position

Note:tag is the only thing required to be included in thetag. There cannot be more than oneelement in an HTML document. </p>

Tip:If thetag is omitted, the document is invalid as HTML. </p>

html title tag Example

    php中文网 

body 元素的内容会显示在浏览器中。

title 元素的内容会显示在浏览器的标题栏中。

Copy after login

Output:

How to use html title tag

The above is the detailed content of How to use html title tag. 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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!