The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.


< html‎ | elements
Jump to: navigation, search


This article is In Progress.


The h1 through h6 elements define levels of headings within a document.

Overview Table

DOM Interface HTMLHeadingElement

These elements have a rank given by the number in their name. The h1 element is said to have the highest rank, the h6 element has the lowest rank, and two elements with the same name have equal rank.

HTML information

Closing Tag required
CSS Display block



    The H1 element applies a
    level-1 heading syle to the
    contained text. 
<h1>Welcome to Web Platform Docs!</h1>

    H2 is used for level-2 headings.

<!-- etc. -->
<h4>Level-4 Heading</h4>
<h5>Level-5 Heading</h5>
<h6>Level-6 heading, smallest heading avaliable</h6>

View live example



Use H1 through H6 to specify different sizes and styles of headings.

Standards information

Related specifications

Specification Status Related Changes
HTML 5.1 W3C Working Draft
HTML 5 W3C Recommendation
HTML 4.01 W3C Recommendation

See also

Related articles


  • hn


This article contains content originally from external sources.

Portions of this content come from the Mozilla Developer Network cc-by-sa-small-wpd.svg: Article

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]