Favorites

HTML aria-colspan ARIA Attribute

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

The aria-colspan attribute gives the number of columns 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-colspan attribute defines how many columns a cell spans in a table, grid or treegrid. It is the ARIA version of the HTML colspan attribute, for tables made from <div> elements with ARIA roles. The value must be 1 or more.

Visual spanning still has to be done with CSS, for example with grid-column; the attribute only tells assistive technology about the structure. Don't use it on native <td> and <th> elements: use colspan there.

Properties

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

Syntax

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

Values

  • integerThe number of columns the cell spans, 1 or more.

Example

<div role="table" aria-label="Opening hours" style="display:grid;grid-template-columns:repeat(3,auto);gap:4px">
<span role="row" style="display:contents">
<span role="columnheader">Day</span><span role="columnheader">Open</span><span role="columnheader">Close</span>
</span>
<span role="row" style="display:contents">
<span role="cell">Sunday</span>
<span role="cell" aria-colspan="2" style="grid-column:span 2">Closed</span>
</span>
</div>

Browser Support

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