HTML aria-colindex ARIA Attribute
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.
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
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.
Desktop





Tablets & Mobile





