ARIA States & Properties
aria-rowspan
Describes how many rows a cell spans in an ARIA table or grid; zero has special row-group meaning. It does not affect visual layout. Prefer native rowspan on td or th in actual HTML tables. Value type: integer. Accepted values: nonnegative integer; zero extends to remaining rows in row group. Default or omitted behavior: 1. Applicable context: 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-rowspan="2"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-rowspan | integer | Accepted values: nonnegative integer; zero extends to remaining rows in row group. Default or omitted behavior: 1. Context: cell, gridcell, columnheader, rowheader. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="table" aria-label="Schedule"> <div role="row"> <span role="cell" aria-rowspan="2">Morning</span> <span role="cell">Monday</span> </div> <div role="row"> <span role="cell">Tuesday</span> </div></div>