Description

An acknowledgment of the source of integrated content from third-party sources, such as photos. Typically identifies the creator, copyright and any restrictions on reuse.

Examples

Example 1 — Image credit
<figure>
   <img src="bandersnatch.jpg" alt="The Bandersnatch" />
   <figcaption>
      …
      <p role="doc-credit">Image courtesy of …</p>
   </figcaption>
</figure>

Relation to ARIA

doc-credit inherits its semantics from the a section role (i.e., it represents a container of related content, but is not a landmark).

Usage

doc-credit is typically used on p and div elements, depending on whether the credit is a single paragraph or consists of multiple paragraphs. It is not recommended to identify individual credits when they are contained within a section of credits, as the purpose of the section already makes clear the contents.

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.

Related Links