Curriculum ▸ HTML Zero → Mastery ▸ Lesson 13: Multiple Headings (<h2>–<h6>) Foundations

Lesson 13 — Multiple Headings <h2>–<h6>

Learning Goals

Part 1 — Multiple Levels of Headings

After your main <h1>, use <h2> for major sections, <h3> for subsections, and so on down to <h6>.

Headings create a logical outline — both humans and screen readers use this outline to understand your content’s hierarchy.

Part 2 — Example

<h1>Web Development</h1>

<h2>Frontend</h2>
  <h3>HTML</h3>
  <h3>CSS</h3>
  <h3>JavaScript</h3>

<h2>Backend</h2>
  <h3>Node.js</h3>
  <h3>Databases</h3>
    <h4>SQL</h4>
    <h4>NoSQL</h4>

Part 3 — Best Practices

Part 4 — Common Mistakes

Quick Quiz

  1. What’s the difference between <h1> and <h2>?
  2. How do <h3> and <h4> fit into the structure?
  3. True/False: You can skip heading levels if it looks better visually.
Sample Answers
  • <h1> is the page’s main title; <h2> are section titles.
  • They are subsections under higher levels, creating a tree structure.
  • False — skipping levels harms structure and accessibility.

Mini Project — Build an Outline

Create a document with:

Lesson 13 Dictionary

Headings (<h2>–<h6>)
Define sections and subsections beneath <h1>.
Outline
The hierarchical structure created by heading levels.
Semantic Structure
Using HTML elements to give meaning to content for humans and assistive tech.