ARIA Structure Roles
ARIA role: row
A row containing table, grid or treegrid cells. Prefer tr; row requires table/grid/treegrid or rowgroup context. In interactive grids follow the grid keyboard model. The example demonstrates a native equivalent or preferred alternative and deliberately omits redundant ARIA. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.
Formal Syntax & Structure
html syntaxhtml
role="row"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token row; use only where allowed. Omit when native semantics match. |
| aria-expanded | boolean or undefined | Relevant when applicable. Reports whether content controlled or owned by an element is expanded or collapsed. Use on the actual controlling widget; omit when it has no expandable content. It does not show or hide content automatically. Values: true, false, undefined. |
| aria-rowindex | integer | Relevant when applicable. Reports the logical position of a row or cell in a partially rendered table or grid, including header rows. Use increasing row indices; where applied to cells they must reflect actual row positions and spans. Values: positive 1-based index. |
Working Example
Example Snippethtml
<table> <tr> <th>Item</th> <th>Count</th> </tr> <tr> <td>Pens</td> <td>4</td> </tr></table>