Home>Article>Web Front-end> How to change the page title in html
In HTML, you can use the title tag to modify the title of the web page. The specific syntax format is "
Web page title content ". The title element defines the title of the document. Browsers use the title in a special way and usually place it on the title bar or status bar of the browser window.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer. The
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:
网页标题内容
Attributes:
Effect:我的第一个 HTML 页面 body 元素的内容会显示在浏览器中。
title 元素的内容会显示在浏览器的标题栏中。
Extended reading: What’s in the title?
Be sure to choose the right title, which is important to defining the document and ensuring it can be used effectively on the Web. Remember that users can access each document in the document set independently, in any order. Therefore, the title of a document should not only be defined in the context of other documents, but also show its own characteristics. Titles that contain document citation ordering are generally not good titles. For example, a title like "Chapter 16" or "Part 5" does nothing to help the reader understand the content. A more descriptive title, like "Chapter 16: HTML Headings" or "Part 5: How to Use Headings," not only expresses its place within a larger collection of documents, but also explains what the document is about. content, attracting readers to be more interested in reading. Self-referential titles are also of little use. Titles like "Home Page" have nothing to do with the content, and similar titles include "Feedback Page" or "Frequently Used Links." You should design a title that can convey certain content and purpose, so that readers can judge whether it is necessary to visit this page based on this title. "HTMLThe above is the detailed content of How to change the page title in html. For more information, please follow other related articles on the PHP Chinese website!