Documentation

Student-friendly HTML, CSS, and JavaScript reference with examples

Sections

HTML Heading Elements

Headings organize your content into sections. HTML has six levels of headings, from <h1> (biggest) to <h6> (smallest).

<h1>Main Title</h1>
<h2>Section Title</h2>
<h3>Subsection Title</h3>

Important: Use only one <h1> per page (your main title), then use <h2> for major sections, <h3> for subsections, etc.

Headings help both users and search engines understand your content structure.