ARIA States & Properties
aria-colindex
Identifies the logical column position of a rendered cell when columns are omitted. Use increasing indices within the row and keep them within the known total. When placed on a row, the represented cells must satisfy the specification's contiguity conditions. Value type: integer. Accepted values: positive 1-based index. Default or omitted behavior: inferred from DOM structure. Applicable context: row, cell, gridcell, columnheader, rowheader. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.
Formal Syntax & Structure
html syntaxhtml
aria-colindex="2"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-colindex | integer | Accepted values: positive 1-based index. Default or omitted behavior: inferred from DOM structure. Context: row, cell, gridcell, columnheader, rowheader. Requiredness depends on the role. |
Working Example
Example Snippethtml
<div role="table" aria-label="Inventory" aria-colcount="4"> <div role="row"> <span role="cell" aria-colindex="2">Pens</span> <span role="cell" aria-colindex="4">4</span> </div></div>