Favorites

ARIA caption Role

caption
ARIA Document Structure RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The caption role marks the visible caption of a table, grid or figure. The caption and figcaption elements have this role.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

Category
Document Structure
HTML equivalent
<caption>, <figcaption>
Accessible name from
prohibited
Required parent role
figure, grid, table, treegrid
Required child roles
None

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

<div role="table" aria-labelledby="cap">
<div role="caption" id="cap"><strong>Opening hours</strong></div>
<div role="row"><span role="cell">Mon&ndash;Fri</span> <span role="cell">9am&ndash;5pm</span></div>
</div>

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.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee