Favorites

HTML aria-rowindex ARIA Attribute

aria-rowindex
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

<div role="grid" aria-rowcount="200" aria-label="Contacts">
<div role="row" aria-rowindex="1"><span role="columnheader">Name</span></div>
<div role="row" aria-rowindex="57"><span role="gridcell">Lee</span></div>
<div role="row" aria-rowindex="58"><span role="gridcell">Lopez</span></div>
</div>

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.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee