Ensures table headers have discernible text

Rule ID: empty-table-header
Ruleset: axe-core 4.3
User Impact: Minor
Guidelines: WCAG 2.1 (A), WCAG 2.0 (A)

Accessibility testing for dev teams - No experience required

Find and fix up to 80% of accessibility issues with axe DevTools Pro. Get started with your free trial today. No credit card needed.

Compliance Data & Impact

User Impact

Minor
Minor
Critical

Disabilities Affected

  • Blind
  • Low Vision

Standard(s)

  • WCAG 2.1 (A)
  • WCAG 2.0 (A)

WCAG Success Criteria [WCAG 2.1 (A)]

  • 1.3.1: SHOULD: Info and Relationships

WCAG Success Criteria [WCAG 2.0 (A)]

  • 1.3.1: SHOULD: Info and Relationships

How to Fix the Problem

Correct markup solutions

Table header elements (those marked with <th> or role="rowheader" or role="columnheader") should have visible text that describes its purpose.

<table><tr><th>Student Name</th></tr></table>

Incorrect markup solutions

<table><tr><th></th></tr></table>

<table><tr><th aria-label="Student Name"></th></tr></table>

Why it Matters

Table header elements should have visible text that describes the purpose of the row or column to both sighted users and screen reader users.

Rule Description

Table header elements should have visible text. Ensure that the table header can be used by screen reader users. If the element is not a header, marking it up with a `td` is more appropriate.

The Algorithm (in simple terms)

Checks all table header elements to ensure that they have a visible text.

Resources

Was this information helpful?

You have already given your feedback, thank you..

Your response was as follows:

Was this information helpful?
Date/Time feedback was submitted: