Description
An illustratration of a key concept of the work, such as a code listing, case study or problem.
Examples
Relation to ARIA
doc-example
inherits its semantics from the section role (i.e., it represents a container
of related content, but is not a landmark).
Usage
doc-example
is typically used on figure
and pre
elements.
For a simplified list of all the elements the role is allowed on, refer to the mapping table in the EPUB Type to ARIA Role Authoring Guide. For the official list of allowed elements, refer to ARIA in HTML.