What does the h1 tag mean?
The title (H1-H6) tag refers to a tag that emphasizes the text title in the web page html, with the tag
Function:
Note: Since 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.
Note: In HTML 4.01, the "align" attribute of h1 - h6 elements is deprecated. In XHTML 1.0 Strict DTD, the "align" attribute of h1 - h6 elements is not supported.
html h1 tag example
<html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> <p>请仅仅把标题标签用于标题文本。不要仅仅为了产生粗体文本而使用它们。请使用其它标签或 CSS 代替。</p> </body> </html>
The above is the detailed content of What does the h1 tag mean?. For more information, please follow other related articles on the PHP Chinese website!