HTML Fundamentals|
Heading Hierarchy

Headings and Paragraphs

Python

Heading Hierarchy

Heading Hierarchy

HTML has 6 heading levels, from h1 (most important) to h6 (least important).

Heading Levels

Main Title

Section Title

Subsection Title

Sub-subsection

Minor heading
Smallest heading

Best Practices

- Use only one h1 per page (the main title)

  • Don't skip levels (h1 → h3 is bad, h1 → h2 → h3 is good)
  • Use headings for structure, not just styling

    Your Task

    Create proper heading structure:

  • h1: "My Blog"
  • h2: "Recent Posts"
  • h3: "Learning HTML"
  • h3: "CSS Basics"
  • Code Editor
    Loading HTML engine...
    Loading...
    Loading Python engine...

    Run your code to see output