ARIA Structure Roles

ARIA role: img

A single image or a collection treated as one image. Give an accessible name. Prefer img with alt for actual images; descendants may be flattened in accessibility APIs. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.

Formal Syntax & Structure

html syntaxhtml
role="img"

Parameters & Attributes

NameTypeDescription
roletokenExplicit role token img; use only where allowed. Omit when native semantics match.

Working Example

Example Snippethtml
<div role="img" aria-label="Three of five tasks completed">● ● ● ○ ○</div>
HTML Reference