ARIA States & Properties

aria-rowcount

Reports the total row count, including header rows, when only part of a table or grid is rendered. Use -1 for unknown total. Pair with consistent aria-rowindex values. Value type: integer. Accepted values: positive integer or -1. Default or omitted behavior: inferred from available rows. Applicable context: table, grid, treegrid. 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-rowcount="100"

Parameters & Attributes

NameTypeDescription
aria-rowcountintegerAccepted values: positive integer or -1. Default or omitted behavior: inferred from available rows. Context: table, grid, treegrid. Requiredness depends on the role.

Working Example

Example Snippethtml
<div role="table" aria-label="Orders" aria-rowcount="100">  <div role="row" aria-rowindex="50">    <span role="cell">Order 50</span>  </div></div>
HTML Reference