Barrier of the Week

It Looks Like a Heading. The Code Says Otherwise.

Tremfya website showing visually prominent section titles like "Learn about TREMFYA withMe" that appear as headings on screen but are not coded as heading elements, with screen reader output showing only repeated H1 tags.
Tremfya website showing visually prominent section titles like "Learn about TREMFYA withMe" that appear as headings on screen but are not coded as heading elements, with screen reader output showing only repeated H1 tags.
<div class="section-title">Treatment Overview</div>
<h2>Treatment Overview</h2>
<h2>About the Treatment</h2><h3>How It Works</h3><h3>Safety Information</h3>
h2 {  font-size: 2rem;  font-weight: bold;}

    Why must visual headings be coded as real headings?

    Because screen readers rely on HTML heading tags to understand page structure. Styled text without proper tags is invisible to assistive technology.

    What happens when headings are only styled with CSS?

    They may look correct visually, but screen readers won’t recognize them, making navigation difficult and removing key sections from the page outline.

    How do screen reader users navigate headings?

    They use shortcut keys to jump between headings or generate a list of all headings, helping them quickly find relevant content.

    How can developers fix this issue?

    Use proper semantic HTML (<h1>–<h6>) for headings and apply CSS for styling instead of using divs or spans to mimic headings.

    Tremfya website showing visually prominent section titles like "Learn about TREMFYA withMe" that appear as headings on screen but are not coded as heading elements, with screen reader output showing only repeated H1 tags.
    <div class="section-title">Treatment Overview</div>
    <h2>Treatment Overview</h2>
    <h2>About the Treatment</h2><h3>How It Works</h3><h3>Safety Information</h3>
    h2 {  font-size: 2rem;  font-weight: bold;}

      Why must visual headings be coded as real headings?

      Because screen readers rely on HTML heading tags to understand page structure. Styled text without proper tags is invisible to assistive technology.

      What happens when headings are only styled with CSS?

      They may look correct visually, but screen readers won’t recognize them, making navigation difficult and removing key sections from the page outline.

      How do screen reader users navigate headings?

      They use shortcut keys to jump between headings or generate a list of all headings, helping them quickly find relevant content.

      How can developers fix this issue?

      Use proper semantic HTML (<h1>–<h6>) for headings and apply CSS for styling instead of using divs or spans to mimic headings.

      Human-led accessibility solutions that enable access for all

      We manually test forms and online services with real assistive technology, so the people who need to report a hazard actually can.

      Talk to our team →

      Make sure your forms work for everyone

      Tell us about your website or reporting system and we will get back to you with a no-obligation read on your accessibility risk.

      Get in touch →