**`<h2>`** headings divide a page into its major sections — think of them as chapter titles under the page's overall `<h1>` title. A blog post's `<h1>` might be the article title, while each `<h2>` marks a major section within it (e.g. 'Introduction', 'How It Works', 'Conclusion'). Unlike `<h1>`, having multiple `<h2>` elements on one page is completely normal and expected — it's how you build out the page's structural outline.
1Understanding <h2>
`<h2>` headings divide a page into its major sections — think of them as chapter titles under the page's overall <h1> title. A blog post's <h1> might be the article title, while each <h2> marks a major section within it (e.g. 'Introduction', 'How It Works', 'Conclusion'). Unlike <h1>, having multiple <h2> elements on one page is completely normal and expected — it's how you build out the page's structural outline.
Screen reader users frequently navigate a page by jumping heading-to-heading (a dedicated keyboard shortcut in most screen readers) — clear, descriptive <h2>s make this navigation genuinely usable, similar to a table of contents.
<h1>How to Bake Bread</h1>
<h2>Ingredients</h2>
<p>...</p>
<h2>Instructions</h2>
<p>...</p>2Practical Example
Here is a real-world application of <h2> showing how it is used in production HTML.
<!-- A blog post structured with clear h2 sections -->
<article>
<h1>Understanding CSS Flexbox</h1>
<h2>What is Flexbox?</h2>
<h2>The Main Axis vs Cross Axis</h2>
<h2>Common Use Cases</h2>
</article>3Best Practices
Follow these guidelines when working with <h2>:
1. Use <h2> for each major section under the page's single <h1>
2. Keep <h2> text descriptive of that section's content, not generic like 'Section 1'
3. Maintain a logical order — don't jump from <h2> to <h4>, use <h3> for subsections of an <h2> first
Tip: Screen reader users frequently navigate a page by jumping heading-to-heading (a dedicated keyboard shortcut in most screen readers) — clear, descriptive <h2>s make this navigation genuinely usable, similar to a table of contents.
<h1>How to Bake Bread</h1>
<h2>Ingredients</h2>
<p>...</p>
<h2>Instructions</h2>
<p>...</p>