HTML4 HTML5
Defines hierarchical headings on a webpage. The <h1> tag represents the highest level heading (most important, usually one per page), whereas <h6> represents the lowest level.
Both opening and closing tags are required for each heading level.
Attributes: Global attributes are primarily used, such as class, id, and style.
Code:
The browser will interpret this code as follows: