ARIA img Role
The img role marks a single image, which can be made up of several elements such as an SVG, emoji or icon font. The img element with an alt attribute has this role.
Description
The img role identifies a single image, which can be a collection of elements and text that together form a picture, such as an inline SVG, an icon made with an icon font, or a group of emoji. Assistive technology treats the whole element as one image and does not expose its children.
An image needs an accessible name with aria-label or aria-labelledby, unless it is decorative. The <img> element has this role and takes its name from alt; an <img> with alt="" is decorative and is treated as presentation.
Add role="img" to inline <svg> elements that convey meaning, because some browsers don't otherwise expose them as images. Decorative SVGs should use aria-hidden="true" instead. In ARIA 1.3, image is a synonym for this role.
Use the native HTML <img>, <svg> element where you can: it already has the img role, with the expected keyboard and browser behavior built in.
Properties
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="img">
Example
Browser Support
The following information will show you the current browser support for the img ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





