Favorites

HTML aria-rowspan ARIA Attribute

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

The aria-rowspan attribute gives the number of rows that a cell spans in a table or grid built with ARIA roles.

☕
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-rowspan attribute defines how many rows a cell spans in a table, grid or treegrid. It is the ARIA counterpart of the HTML rowspan attribute, for tables built from generic elements with ARIA roles. The value is 0 or more; 0 means the cell spans all remaining rows in its row group.

The attribute only describes structure: use CSS, such as grid-row, to make the cell span visually. On native <td> and <th> elements, use rowspan instead.

Properties

Type
Widget
Value
integer
Default
None
Used with
cell, columnheader, gridcell, rowheader

Syntax

<element role="cell" aria-rowspan="number">

Values

  • integerThe number of rows the cell spans.

Example

<div role="table" aria-label="Schedule" style="display:grid;grid-template-columns:auto auto;gap:4px">
<span role="row" style="display:contents">
<span role="rowheader" aria-rowspan="2" style="grid-row:span 2">Morning</span>
<span role="cell">Yoga</span>
</span>
<span role="row" style="display:contents">
<span role="cell">Swimming</span>
</span>
</div>

Browser Support

The following information will show you the current browser support for the aria-rowspan 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