<h1> - <h6>
Instance
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> </head> <body> <h1>这是标题 1</h1> <h2>这是标题 2</h2> <h3>这是标题 3</h3> <h4>这是标题 4</h4> <h5>这是标题 5</h5> <h6>这是标题 6</h6> </body> </html>
Run Instance»
Click the "Run Instance" button to view the online instance
Browser support
All major browsers support <h1> - <h6> tags.
Tag definition and usage instructions
<h1> - <h6> tags are used to define HTML titles.
<h1> Defines the title with the highest level of importance. <h6> Defines the title with the lowest level of importance.
Differences between HTML 4.01 and HTML5
In HTML 4.01, the "align" attribute of <h1> - <h6> has been deprecated. In HTML 5, the "align" attribute of <h1> - <h6> elements is not supported. Please use CSS to arrange elements.
Properties
Properties | Value | Description |
---|---|---|
align | left center right Justify | HTML5 is not supported. HTML 4.01 is deprecated. Specifies the arrangement of text in the title. |
Global attributes
<h1> - <h6> tag supports global attributes of HTML .
Event attributes
<h1> - <h6> tag supports HTML event attributes.
Related Articles
HTML Tutorial: HTML Title