Skip to main content

    How to Write SEO-Friendly Headings

    • 5 min read

    Your headings are one of the most important on-page SEO elements. A well-structured heading hierarchy helps search engines understand your content, improves accessibility, and makes your pages easier to scan. Here's how to write headings that work for both SEO and readers.

    The Heading Hierarchy Explained

    HTML provides six heading levels (H1 through H6), but most content only needs three or four. Think of them like a document outline:

    • H1: The main topic of the page. Use only once per page.
    • H2: Major sections that break down the H1 topic.
    • H3: Subsections within each H2 section.
    • H4-H6: Rarely needed; use for deeply nested content.

    Never skip levels (e.g., jumping from H1 to H3). This breaks the logical structure and can hurt accessibility for screen reader users who navigate by headings.

    H1 Best Practices

    Your H1 is the most important heading on the page. It should clearly state what the page is about and include your primary keyword naturally. Here's what works:

    • One H1 per page: This is non-negotiable. Multiple H1s dilute your focus.
    • Match user intent: Your H1 should answer "what is this page about?" instantly.
    • Include primary keyword: Place it near the beginning of the H1.
    • Keep it under 60 characters: Ensures full display in search results.
    • Make it descriptive: "Guide to Headings" is weak; "How to Write SEO-Friendly Headings" is strong.

    H2 and H3 Optimization

    Subheadings (H2s and H3s) help structure your content and create opportunities for secondary keywords. Google uses these to understand the topics you cover.

    • Use H2s every 200-300 words: This creates natural reading breaks.
    • Include variations of your keyword: Use related terms and synonyms.
    • Make them scannable: Readers should understand your content by reading headings alone.
    • Use questions as headings: These can trigger featured snippets in Google.

    Character Limits for Headings

    While there's no hard technical limit, practical constraints matter:

    HeadingRecommended Length
    H120-70 characters
    H220-60 characters
    H315-50 characters

    Shorter headings are easier to scan and look better on mobile devices. Front-load the most important words since readers often only read the first few words.

    Common Mistakes to Avoid

    • Using headings for styling: If you want big text, use CSS—not an H2.
    • Keyword stuffing: "SEO Headings SEO Tips SEO Guide" reads terribly.
    • Vague headings: "Introduction" and "Conclusion" waste SEO potential.
    • Skipping H1: Every page needs one, including home pages.
    • Too many headings: If every paragraph has its own heading, none stand out.

    Accessibility in Heading Structure

    Proper heading structure isn't just about SEO – it's crucial for screen reader users. Screen readers use headings to navigate pages, making your content scannable for visually impaired users. Ensure your heading hierarchy follows a logical flow (H1 to H6 without skipping levels) to maintain accessibility. Avoid using headings for stylistic purposes (like making text bold), and instead use CSS for visual formatting. This dual focus on SEO and accessibility creates a better experience for all users while maintaining technical compliance with WCAG standards.

    • Ensure heading hierarchy follows a logical flow (H1 to H6 without skipping levels).
    • Avoid using headings for stylistic purposes; use CSS instead.
    • Maintain technical compliance with WCAG standards.

    Choosing the Right Case Format for Headings

    While heading content matters most, the case format you choose affects readability. CamelCase (e.g., 'SEOFriendlyHeadings') is commonly used in code but less readable in long headings. Snake_case (e.g., 'seo_friendly_headings') works well in technical documentation but can appear jarring in natural language. Kebab-case (e.g., 'seo-friendly-headings') is ideal for URLs and web content. For actual heading text, title case (e.g., 'SEO-Friendly Headings') is generally most readable and professional. Match your case format to the context and audience to maintain clarity while avoiding unnecessary technical formatting.

    • CamelCase is common in code but less readable for long headings.
    • Snake_case is good for technical docs but jarring in natural language.
    • Kebab-case is ideal for URLs and web content.
    • Title case is most readable and professional for actual heading text.

    Real-World Example of Effective Headings

    Consider a blog post about 'How to Write Effective Alt Text'. The H1 would be 'How to Write Effective Alt Text'. Subheadings could include 'Why Alt Text Matters for Accessibility' (H2), 'Best Practices for Descriptive Alt Text' (H2), and 'Common Alt Text Mistakes to Avoid' (H2). Each H2 could then have supporting H3 headings like 'Length Guidelines for Alt Text' and 'When to Use Alt Text vs. Captioning'. This structure creates a clear path for readers and search engines, while naturally incorporating relevant keywords like 'write effective alt text' and 'accessibility'.

    • H1: 'How to Write Effective Alt Text'
    • H2s: 'Why Alt Text Matters for Accessibility', 'Best Practices for Descriptive Alt Text', 'Common Alt Text Mistakes to Avoid'
    • H3s: 'Length Guidelines for Alt Text', 'When to Use Alt Text vs. Captioning'

    FAQ

    Check Your Heading Length

    Use our character counter to ensure your headings hit the optimal length.