HTML aria-rowindex ARIA Attribute
The aria-rowindex attribute gives the position of a row or cell within the full set of rows of a table or grid, counting from 1.
Description
The aria-rowindex attribute defines the row position of a row or cell within a table, grid or treegrid, starting at 1 for the first row (including header rows). It is needed when not all rows are present in the DOM, so users still hear where they are, such as "row 42 of 501".
It is usually set on each row, and can also be set on cells. Combine it with aria-rowcount on the table. A cell that spans rows uses the index of its first row, along with aria-rowspan.
If all rows are in the DOM, browsers calculate the index themselves and the attribute isn't needed.
Properties
- Type
- Widget
- Value
- integer
- Default
- None
- Used with
cell,columnheader,gridcell,row,rowheader
Syntax
<element role="row" aria-rowindex="number">
Values
- integerThe row position, starting at 1.
Example
Browser Support
The following information will show you the current browser support for the aria-rowindex ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





