HTML Dog
Skip to navigation

HTML Tag: h1, h2, h3, h4, h5, and h6

Ranked headings, h1 being the top-level heading, and h6 being the lowest level heading.

Optional Attributes

Global attributes

Example


<h1>The Main Heading</h1>
<!-- stuff -->

<section>
    <h2>A Subheading</h2>
    <!-- sub-stuff -->
</section>

<section>
    <h2>Another Subheading</h2>
    <!-- sub-stuff -->

    <h3>A Subheading of a Subheading</h3>
    <!-- sub-sub stuff -->
</section>