Neova高级 SEO 平台

表头单元格没有文本

在 Neova 中 直接在抓取过程中运行,无需任何设置。

规则最近审核:2026年10月17日 · 指南更新:2026年7月27日

无障碍最佳实践,不是 WCAG 的要求。没有文本的表头单元格,不会向使用屏幕阅读器的用户提供列名或行名。

您可以做什么

为表头单元格添加文本。如果该单元格不是表头,请使用 td 元素。

Neova 为何标记

  • 屏幕阅读器会随每个数据单元格朗读表头,空表头会让单元格失去上下文。
  • 用户浏览表格时,只听到数值,听不到列名或行名。
  • 这是最佳实践,本身不是 WCAG 要求。

来源

完整指南

这一部分目前只有英文版。

AI Summary

Every data table needs th cells with real, descriptive text and a scope attribute so screen readers can announce the correct column or row for each cell. Empty or icon only headers leave assistive technology users without context and trigger the axe empty table header rule.

  • Give every th visible text that names the column or the row.
  • Add scope col or scope row so header associations are explicit.
  • For complex tables, use the id and headers attributes for exact mapping.
  • Do not fake headers with bold styled cells; use real th elements.
Diagram of four fixes for accessible table headers: add descriptive text to every th, set a scope, use id and headers for complex tables, and test with axe and WAVE.
Accessible tables need th cells with real text and a scope so screen readers announce the right column or row for every data cell.

Quick Reference

Element Code: AC-024

Issue: Table header cells (th) are empty or lack text

Impact: Screen readers cannot announce column or row context for data cells

Fix: Add descriptive text to all th elements

Detection: axe DevTools, WAVE, table accessibility audits

What Is This Issue?

Table headers define the meaning of columns and rows. Without header text, screen readers cannot provide context when users navigate data cells, making tables unusable.

Why This Matters for Your Website

Data tables are critical for presenting structured information. Inaccessible tables exclude users from understanding your data.

How to Fix This Issue

  1. Add text to headers: Describe what each column contains
  2. Use scope attribute: scope="col" or scope="row"
  3. For complex tables: Use id/headers for explicit associations

Tools for Detection

  • axe DevTools: Reports empty table headers
  • WAVE: Shows table structure issues

TL;DR (The Simple Version)

Your table headers are empty. Add text to each th cell that describes what the column or row contains.

Why Empty Headers Break Screen Readers

A sighted reader infers structure from position and styling: the top row is clearly labels, the left column clearly names each row. A screen reader has none of that visual context. It relies on the th element and its text to announce, for each data cell, which column and row it belongs to. When a header cell is empty, contains only an icon, or is faked with a bold styled td, the assistive technology has nothing to say, and the user hears a wall of numbers with no meaning. This is a real barrier, and it maps directly to WCAG success criterion 1.3.1, Info and Relationships. Accessible tables also help every visitor, which is why we treat them alongside checks like links must have discernible text and sufficient text contrast.

Correct Markup Patterns

For a simple table, use th for every header and set scope so the association is explicit.

<table>
  <tr>
    <th scope="col">Plan</th>
    <th scope="col">Monthly price</th>
  </tr>
  <tr>
    <th scope="row">Starter</th>
    <td>19</td>
  </tr>
</table>

For a complex table with grouped or multi level headers, connect cells explicitly with id on the header and headers on the data cell, so the relationship survives even when scope alone is ambiguous.

Header Techniques and When to Use Them

Technique When to Use Example
Th With Text Every data table Name the column or row clearly
Scope Col or Row Simple grids scope on each header cell
ID and Headers Complex, grouped headers Map each cell to its headers
Caption Any table needing a title Describe the table's purpose

This very table uses th with scope for both its column and row headers, so a screen reader announces each cell in context.

What's Changed Since

The requirement itself is stable, because WCAG 1.3.1 has anchored it for years and WCAG 2.2 did not change the table rules. What has improved is tooling and enforcement. Automated checkers like axe DevTools and WAVE reliably flag the empty table header condition, and axe core now ships inside many CI pipelines, so this defect can be caught before release rather than in an audit. The old habit of building layout with tables has also faded, which means most remaining tables are genuine data tables that truly need proper headers. When you fix these, also confirm related structure with checks such as a correct heading structure.

Frequently Asked Questions

What Does Discernible Text Mean for a Table Header?

It means each th cell contains real, readable text that names what the column or row holds, not an empty cell, a spacer, or an icon with no label. Screen readers read that text to give context to every data cell.

How Do I Fix an Empty Table Header?

Add descriptive text to each th element and set scope col or scope row so the association is explicit. For grouped or multi level headers, connect cells with the id and headers attributes.

What Is the Difference Between Th and Td?

A th is a header cell that labels a column or row, and assistive technology treats its text as context for the related data cells. A td is a regular data cell. Using a styled td instead of a th removes that context.

Do I Need the Scope Attribute on Every Header?

For simple tables, scope col and scope row make the header to cell relationship unambiguous and are strongly recommended. For complex tables with grouped headers, use id and headers instead, which give exact control.

Which Tools Detect Missing Table Header Text?

axe DevTools and WAVE both flag empty or missing table headers, and axe core can run inside automated test pipelines. They report the empty table header condition so you can fix it before shipping.

Is This an SEO Problem or Only Accessibility?

It is primarily an accessibility requirement under WCAG 1.3.1, but accessible, well structured tables are also easier for search engines to parse. Fixing it improves usability for assistive technology users and supports clean semantic markup.

在您自己的网站上找到它

Neova 在每次抓取时都会运行此检查项和其他所有检查项,然后把修复方法写成工单交给您的团队。

  • 适用于 Mac、Windows 和 Linux 的桌面应用
  • 全部 696 项检查,每项都附来源
  • Search Console 和 Analytics 4,以只读方式连接
  • 工单发送到 Jira、Linear 和 Asana

下载 Neova Desktop Free 套餐,或免费试用 Solo 14 天,无需银行卡。

全部无障碍检查 · 指南 · 检查项库

作者:Neova Labs · 返回检查项库