ARIA States & Properties

aria-colspan

Describes the number of columns occupied by a cell in an ARIA table or grid. It does not change visual layout; prefer native colspan on td or th. Ensure spanned columns fit within the logical table. Value type: integer. Accepted values: positive integer. Default or omitted behavior: 1. Applicable context: 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-colspan="2"

Parameters & Attributes

NameTypeDescription
aria-colspanintegerAccepted values: positive integer. Default or omitted behavior: 1. Context: cell, gridcell, columnheader, rowheader. Requiredness depends on the role.

Working Example

Example Snippethtml
<div role="table" aria-label="Schedule" aria-colcount="2">  <div role="row">    <span role="cell" aria-colspan="2">Closed</span>  </div></div>
HTML Reference