Favorites

ARIA img Role

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

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.

☕
Enjoying this site?

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

Buy us a coffee

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

Category
Document Structure
HTML equivalent
<img>, <svg>
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="img">

Example

<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='18' fill='gold'/%3E%3C/svg%3E" alt="Sun">

<svg role="img" aria-label="Five stars" width="100" height="20">
<text x="0" y="16">&#9733;&#9733;&#9733;&#9733;&#9733;</text>
</svg>

<span role="img" aria-label="Thumbs up">&#128077;</span>

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.

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