Description

An explanatory or alternate title for the work, or a section or component within it.

Examples

Example 1 — Subtitle in a header
<header>
   <h2>Section 1 — Applied Metaphysics</h2>
   <p role="doc-subtitle">Who makes up this stuff?</p>
   …
</header>

Relation to ARIA

doc-subtitle inherits its semantics from the a sectionhead role.

Usage

doc-subtitle is typically used on p and div elements. For more information on authoring subtitles, see the section Subheadings, subtitles, alternative titles and taglines in the HTML 5.1 specification.

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
  • h1-h6
  • i
  • img (with alt text)
  • ins
  • kbd
  • mark
  • output
  • p
  • pre
  • q
  • rp
  • rt
  • ruby
  • s
  • samp
  • small
  • span
  • strong
  • sub
  • sup
  • table
  • tbody
  • td
  • tfoot
  • thead
  • th
  • tr
  • time
  • u
  • var
  • wbr

Related Links