html5 title tags include: 1. title tag, which defines the title of the document; 2. h1, h2, h3, h4, h5, h6 tags, which define the content title; 3. caption tag, which defines the table title; 4 , figcaption tag; 5. legend tag; 6. summary tag.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
html5 title tag
1、
Defines the title in the browser toolbar
Provides the page to be added to the collection The title when clipped
The page title that appears in search engine results
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>php中文网</title> </head> <body> ... </body> </html>
2. to
tag
Because the h element has exact semantics, please carefully choose the appropriate tag level to structure the document. Therefore, please do not use title tags to change the font size within the same line. Instead, we should use cascading style sheet definitions to achieve beautiful display effects.
<h1>这是标题 1</h1> <h2>这是标题 2</h2> <h3>这是标题 3</h3> <h4>这是标题 4</h4> <h5>这是标题 5</h5> <h6>这是标题 6</h6>
3.
caption element defines the table title.
The caption label must immediately follow the table label. You can define only one title per table. Usually the title will be centered above the table.
<table border="1"> <caption>人物信息</caption> <tr> <th>姓名</th> <th>年龄</th> </tr> <tr> <td>Peter</td> <td>20</td> </tr> <tr> <td>Lois</td> <td>20</td> </tr> </table>
4. The
The above is the detailed content of What is the title tag in html5. For more information, please follow other related articles on the PHP Chinese website!