Description

A collection of credits.

Examples

Example 1 — Credit section with a heading

The label is identified in the aria-labelledby attribute.

<section role="doc-credits" aria-labelledby="cred-hd">
   <h2 id="cred-hd">Image Permissions</h2>
   <p>Page 18 — Photograph of …</p>
   …
</section>

Relation to ARIA

doc-credits is a landmark role.

Usage

doc-credits is typically used on section elements. It is not recommended to identify each individual credit within a section of credits, as users will already be aware of the purpose of the section.

A label must be provided for the role using one of the aria-labelledby, aria-label or title attributes.

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

Related Links