The HTML tags <h1> to <h1> are used for specifying the different level of headings.

There are 6 levels of headings (<h1> - <h6>) with <h1> the most important and <h6> the least important.

Browsers typically render the various headings in different sizes.

Required Attributes

  • None.

Optional Attributes

Example

<h1>The main heading</h1>
<h2>A subheading</h2>
<p>the paragraph</p>
<h2>Another subheading</h2>

Changes in HTML5

  • None.

Related Tags