html h1 tag
Translation results:
none
html h1 tagsyntax
Function:<h1> - <h6> tags can define titles. <h1> defines the largest heading. <h6> Defines the smallest heading.
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 tagexample
<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>
Run instance »
Click the "Run instance" button to view the online instance