HTML <h1> - <h6> tags
Examples
Six different HTML headings:
<h1>这是标题 1</h1>
<h2>这是标题 2</h2>
<h3>这是标题 3</h3>
<h4>这是标题 4</h4>
<h5>这是标题 5</h5>
<h6>这是标题 6</h6>
<h2>这是标题 2</h2>
<h3>这是标题 3</h3>
<h4>这是标题 4</h4>
<h5>这是标题 5</h5>
<h6>这是标题 6</h6>
try it"
Browser Support
All major browsers support <h1> - <h6> tags.
Tag definitions and instructions
<H1> - <h6> tag is used to define the HTML title.
<H1> Level important to define the highest title. <H6> to define the minimum level of important titles.
Differences between HTML 4.01 and HTML5
In HTML 4.01, <h1> - <h6> The "align" property has been abandoned. In the HTML 5, <h1> - <h6> "align" attribute of the element is not supported. Use CSS to arrange elements.
Attributes
属性 | 值 | 描述 |
---|---|---|
align | left center right justify |
HTML5 不支持。HTML 4.01 已废弃。 规定标题中文本的排列。 |
Global Properties
<h1> - <h6> tag supports HTML global properties .
Event Properties
<h1> - <h6> tag supports HTML event properties .
related articles
HTML Tutorial: HTML title