Skip to main content

HTML Standards: The TR Tag

SimpleAccess.io Elements Series

Elements Index

The <tr> Element

As defined in the HTML Living Standard, the <tr> (Table Row) element represents a row of cells in a table. It acts as the container for either <th> (header cells) or <td> (data cells).

City Population
New York 8.4M
London 8.9M

(Each horizontal line of data is wrapped in a <tr> element.)

<tr> <th>City</th> <th>Population</th> </tr> View HTML Living Standard: The tr element

Technical Rules & Hierarchy

WCAG Requirement: Info and Relationships

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

The <tr> element is the primary unit of navigation for screen reader users in a table. When a user moves from one row to the next, the screen reader uses the <tr> boundary to reset its position and often re-announces the row header (if provided), ensuring the user never loses their place in the dataset.

Understand SC 1.3.1: Info and Relationships

Best Practices

A11y Tip: Row Headers

If the first cell of a row identifies the rest of the data in that row, make that cell a <th scope="row">. This transforms the row from a simple list of data into a structured relationship, which is a key requirement for complex table accessibility.

© 2026 SimpleAccess.io — Native Standards for Everyone.

Back to Index Home