ARIA States & Properties
aria-rowindex
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. Value type: integer. Accepted values: positive 1-based index. Default or omitted behavior: inferred from DOM structure. Applicable context: row, cell, gridcell, columnheader, rowheader. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.
Formal Syntax & Structure
html syntaxhtml
aria-rowindex="8"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-rowindex | integer | Accepted values: positive 1-based index. Default or omitted behavior: inferred from DOM structure. Context: row, cell, gridcell, columnheader, rowheader. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="table" aria-label="Orders" aria-rowcount="20"> <div role="row" aria-rowindex="8"> <span role="cell">Order 8</span> </div></div>