HTML .lt;h1> - -lt;h6> tags
The label is used to define HTML titles, representing six levels of title in an HTML page. H ere's an example to see how each level of title differs:Six different HTML titles:
<h2>这是标题 2</h2>
<h3>这是标题 3</h3>
<h4>这是标题 4</h4>
<h5>这是标题 5</h5>
<h6>这是标题 6</h6>
Try it out . . .
Browser support
All major browsers support the label.
Label definition and instructions for use
Labels are used to define HTML titles.
Define the title with the highest level of importance. Define the title with the lowest important level.
The difference between HTML 4.01 and HTML5
In HTML 4.01, the "align" property of the .lt;h1> I n HTML 5, the "align" property of the element is not supported. Use CSS to arrange the elements.
Property
Attributes | value | describe |
---|---|---|
align |
left
center right justify |
HTML5 does not support.HTML 4.01 has been discarded. Specifies the arrangement of the text in the title. |
Global properties
The label supports the global properties of HTML.
The event property
The tag supports the event properties of HTML.
Related articles
HTML tutorial: HTML title