Skip to main content

HTML Standards: The TD Tag

SimpleAccess.io Elements Series

Elements Index

The <td> Element

As defined in the HTML Living Standard, the <td> (Table Data) element represents a data cell in a table. It is used to contain the actual information—text, images, links, or even other tables—that makes up the primary dataset.

User ID Status
SA-001 Active
SA-002 Pending

(The cells "SA-001", "Active", etc., are <td> elements.)

<tr> <td>Row 1, Cell 1</td> <td>Row 1, Cell 2</td> </tr> View HTML Living Standard: The td element

Technical Attributes

While <td> elements are primarily for content, they support several critical attributes for structural control:

WCAG Requirement: Info and Relationships

Success Criterion 1.3.1 (Level A): Information, structure, and relationships conveyed through presentation can be programmatically determined.

For simple tables, browsers automatically link a <td> to the <th> elements in its row or column. However, for complex tables with nested headers or multi-level relationships, the automatic association often fails. In these cases, you must use the headers attribute on the <td> to explicitly link the data to its corresponding categories.

Understand SC 1.3.1: Info and Relationships

Best Practices

A11y Tip: Responsive Stacking

In mobile views where tables "stack" (turning rows into cards), use the data-label attribute on the <td> and CSS generated content (::before) to replicate the header labels visually. This ensures the Info and Relationship remains perceivable even when the grid structure is removed.

© 2026 SimpleAccess.io — Native Standards for Everyone.

Back to Index Home