ARIA figure Role
The figure role marks a self-contained piece of content, such as an image, chart or code sample, usually with a caption. The figure element has this role.
Description
The figure role identifies a self-contained unit of content, such as an image, diagram, chart, code listing or quotation, that is referenced from the main text but could be moved elsewhere without affecting its meaning. The <figure> element has this role.
A figure usually has a caption. With the native elements, a <figcaption> inside the <figure> labels it automatically. With ARIA roles, point aria-labelledby on the figure to its caption. The caption doesn't replace the image's own alt text.
Use the native HTML <figure> element where you can: it already has the figure role, with the expected keyboard and browser behavior built in.
Properties
- Category
- Document Structure
- HTML equivalent
<figure>- Accessible name from
- author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
- None
- Supported
- None
- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="figure">
Example
Browser Support
The following information will show you the current browser support for the figure ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





