Favorites

HTML aria-colindex ARIA Attribute

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

The aria-colindex attribute gives the position of a cell or row within the full set of columns of a table or grid, counting from 1.

☕
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-colindex attribute defines an element's column position within a table, grid or treegrid, starting at 1 for the first column. It is used when some columns are not present in the DOM, so that assistive technology can still tell users which column they are in, such as "column 5 of 12".

Put it on each cell, or on the row when the cells in that row are contiguous, and use aria-colcount on the table to give the total. A cell that spans several columns uses the index of its first column, together with aria-colspan.

When all columns are in the DOM, the browser works the positions out itself and the attribute is not needed. For a column label that is more meaningful than a number, such as a letter in a spreadsheet, add aria-colindextext.

Properties

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

Syntax

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

Values

  • integerThe column position, starting at 1.

Example

<div role="table" aria-colcount="6" aria-label="Scores">
<div role="row">
<span role="columnheader" aria-colindex="1">Name</span>
<span role="columnheader" aria-colindex="6">Total</span>
</div>
<div role="row">
<span role="cell" aria-colindex="1">Sam</span>
<span role="cell" aria-colindex="6">87</span>
</div>
</div>

Browser Support

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