What elements do html5 use for titles?

青灯夜游
Release: 2022-01-11 16:17:49
Original
3259 people have browsed it

html5 elements used to make titles: 1. title element, which can define the title of the document, with the syntax "

Website title name"; 2. h1, h2, h3, h4 , h5, h6 elements can define the title in the document content, and the importance is decreasing from h1 to h6.

What elements do html5 use for titles?

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

html5 Title elements

1. Use the title element--the title of the website document

# The ## tag defines the title of the document and is required in all HTML documents. <p></p> <title> Element: <p></p> <ul style="list-style-type: disc;"> <li> Defines the title in the browser toolbar <p></p> </li> <li> Provides the page to be added to the collection The title when clipped <p></p> </li> <li>The page title that appears in search engine results<p></p> </li><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false"><!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>php中文网</title> </head> <body> ... </body> </html></pre><div class="contentsignin">Copy after login</div></div></ul><p><img src="https://img.php.cn/upload/image/464/449/197/1641888737445495.png" title="1641888737445495.png" alt="What elements do html5 use for titles?"/></p><p> 2. Use the <h1> to <h6> tag - the title of the document content <strong></strong></p> In order to make the web page more semantic, title tags are often used in the page. HTML provides 6 There are three levels of headings, namely <h1>, <h2>, <h3>, <h4>, <h5> and <h6>, with decreasing importance from <h1> to <h6>. <p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false"><!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>php中文网</title> </head> <body> <h1>这是标题 1</h1> <h2>这是标题 2</h2> <h3>这是标题 3</h3> <h4>这是标题 4</h4> <h5>这是标题 5</h5> <h6>这是标题 6</h6> </body> </html></pre><div class="contentsignin">Copy after login</div></div><p><img src="https://img.php.cn/upload/image/927/935/964/1641888824845456.png" title="1641888824845456.png" alt="What elements do html5 use for titles?"></p>Related recommendations: "<p>html video tutorial<a href="//m.sbmmt.com/course/list/11.html" target="_blank" textvalue="html视频教程">"</a></p> </ul>

The above is the detailed content of What elements do html5 use for titles?. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template