Semantics

A container for a collection of elements that form an image.

Abstract Role

StructureRepresents a non-interactive part of a page that organizes content into coherent units.

Content Category

Phrasing ContentAn element that typically appears inline and provides semantic meaning to text content.

Allowed Descendants

Phrasing Children Allowed

No interactive content descendants allowed.

Usage

Elements that can designate the role in HTML:

  • img
  • embed[role=img]
  • iframe[role=img]
  • object[role=img]
  • svg[role=img]
  • span[role=img]
  • custom-element[role=img]