ARIA caption Role
The caption role marks the visible caption of a table, grid or figure. The caption and figcaption elements have this role.
Description
The caption role identifies the visible caption of a table, grid, treegrid or figure. It must be the first or last child of that element. The <caption> element for tables and <figcaption> for figures have this role.
The native elements also provide the table's or figure's accessible name automatically. With the ARIA role, you have to connect them yourself, by pointing aria-labelledby on the table or figure at the caption. The caption itself can't be named.
Use the native HTML <caption>, <figcaption> element where you can: it already has the caption role, with the expected keyboard and browser behavior built in.
Properties
ARIA Attributes
- Required
- None
- Supported
- None
- Prohibited
aria-label,aria-labelledby- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="caption">
Example
Browser Support
The following information will show you the current browser support for the caption ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





