ARIA row Role
The row role marks a row of cells in a table, grid or treegrid. The tr element has this role.
Description
The row role identifies a row of cells in a table, grid or treegrid. It contains elements with the cell, gridcell, columnheader or rowheader role, and must be inside the table itself or a rowgroup. The <tr> element has this role.
In a grid, rows can be selectable with aria-selected, and in a treegrid they can be expanded and collapsed with aria-expanded and nested with aria-level. Use aria-rowindex when not all rows are in the DOM.
Use the native HTML <tr> element where you can: it already has the row role, with the expected keyboard and browser behavior built in.
Properties
ARIA Attributes
- Required
- None
- Supported
aria-colindex,aria-expanded,aria-level,aria-posinset,aria-rowindex,aria-rowindextext,aria-selected,aria-setsize- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="row">
Example
Browser Support
The following information will show you the current browser support for the row ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





