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.
List of all elements allowed on
- a (without an href attribute)
- abbr
- address
- b
- bdi
- bdo
- blockquote
- br
- canvas
- cite
- code
- del
- dfn
- div
- em
- i
- img (with alt text)
- ins
- kbd
- mark
- output
- p
- pre
- q
- rp
- rt
- ruby
- s
- samp
- section
- small
- span
- strong
- sub
- sup
- table
- tbody
- td
- tfoot
- thead
- th
- tr
- time
- u
- var
- wbr