HTML aria-colspan ARIA Attribute
The aria-colspan attribute gives the number of columns that a cell spans in a table or grid built with ARIA roles.
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
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.
Desktop





Tablets & Mobile





