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."/> 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.">

Home >Web Front-end >HTML Tutorial >How to set title in html

How to set title in html

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-08 16:09:406980browse

In HTML, you can use the title tag to set the title, and the syntax format is "

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.

How to set title in html

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer. The

element defines the title of the document. <p>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. </p> <p>Tips and Notes</p> <p>Tip: The </p> <title> tag is the only thing required to be included in the tag. The <p></p> <title> tag supports the following standard attributes: <p><img src="https://img.php.cn/upload/image/996/462/981/1623139297990862.png" title="1623139297990862.png" alt="How to set title in html"></p>##Example: <p><pre class="brush:html;toolbar:false"><html> <head> <title>这是标题</title> </head> <body> <p>body 元素的内容会显示在浏览器中。</p> <p>title 元素的内容会显示在浏览器的标题栏中。</p> </body> </html></pre></p>Effect:<p></p> <p><img src="https://img.php.cn/upload/image/261/772/352/1623139665718664.png" title="1623139665718664.png" alt="How to set title in html"></p> <p>Extended information: <strong></strong></p>Extended reading: What is in the title? <p></p>Be sure to choose a correct title, which is important to defining the document and ensuring it can be used effectively on the Web. <p></p>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. <p></p>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, but also explains what the document is about. content, attracting readers to be more interested in reading. <p></p>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. "HTML <title> tag details" is a descriptive title, similar to "HTML <title> tag feedback page" and so on. <p></p>People often spend a lot of time creating web documents, but all of that effort is often wasted just because of an unattractive or meaningless title. When special software that automatically collects links for users became increasingly popular on the Web, only the title of a web page was inserted into the vast database of links as descriptive words related to the page. So we cannot stress this enough: Carefully choose a title for each of your documents that is descriptive, useful, and context-independent. <p></p>Recommended learning: <p>html video tutorial<a href="https://www.php.cn/course/list/11.html" target="_blank"></a></p>

The above is the detailed content of How to set title in html. 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