HTML
-
tag
Example
Six different HTML headings:
<
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
Try it »
Browser support

All major browsers support
-
tag.
Tag Definition and Usage Notes
-
The tag is used to define HTML headings.
Defines the heading with the highest level of importance.
Defines the heading with the lowest level of importance.
Differences between HTML 4.01 and HTML5
In HTML 4.01,
-
The "align" attribute has been deprecated. In HTML 5,
-
the "align" attribute of the element is not supported. Please use CSS to align elements.
property
| property | Value | Description |
|---|---|---|
| align | left |
center
right
justify | HTML5 does not support。HTML 4.01 已废弃。 Specifies标题中文本的排列。 |
Global Attributes
-
The tag supports [HTML Global Attributes](/tags/ref-standardattributes.html).
Event attribute
-
The tag supports [HTML Event Attributes](/tags/ref-eventattributes.html).
Related Articles
HTML Tutorial:HTML heading