ARIA Structure Roles
ARIA role: columnheader
A cell that identifies a column in a table or grid. Prefer th scope=col; aria-sort belongs on the currently sorted header when applicable. The example demonstrates a native equivalent or preferred alternative and deliberately omits redundant ARIA. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.
Formal Syntax & Structure
html syntaxhtml
role="columnheader"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token columnheader; use only where allowed. Omit when native semantics match. |
| aria-sort | token | Relevant when applicable. Describes the sort order of a table or grid column or row. Apply to the relevant header rather than the table; normally only one header is marked as sorted at a time. It does not sort data itself. Values: none, ascending, descending, other. |
Working Example
Example Snippethtml
<table> <tr> <th scope="col">Price</th> </tr> <tr> <td>10</td> </tr></table>