Semantics

One or more subscripted characters.

Additional info from the ARIA specification

See related superscript.

The subscript role is intended to be used only to mark up typographical conventions that have specific meanings; not for typographical presentation for presentation's sake. In general, authors SHOULD use this role only if the absence of the subscript would change the meaning of the content.

Abstract Role

  • StructureRepresents a non-interactive part of a page that organizes content into coherent units.

Content Categories

  • Phrasing ContentAn element that typically appears inline and provides semantic meaning to text content.

Allowed Descendants

Phrasing Children Allowed

Usage

Allowed HTML elements

Implicit semantics

These elements have the role semantics by default, without needing to set the role attribute. Reach for elements with native semantics first when choosing how to implement a role in your content.

  • sub

Explicitly allowed

  • None

Elements that can have any role

  • abbr[role=subscript]
  • address[role=subscript]
  • b[role=subscript]
  • blockquote[role=subscript]
  • canvas[role=subscript]
  • cite[role=subscript]
  • code[role=subscript]
  • custom-element[role=subscript]
  • data[role=subscript]
  • del[role=subscript]
  • dfn[role=subscript]
  • div[role=subscript]
  • em[role=subscript]
  • figure[role=subscript]
  • i[role=subscript]
  • ins[role=subscript]
  • kbd[role=subscript]
  • mark[role=subscript]
  • output[role=subscript]
  • p[role=subscript]
  • pre[role=subscript]
  • q[role=subscript]
  • samp[role=subscript]
  • small[role=subscript]
  • span[role=subscript]
  • table[role=subscript]
  • tbody[role=subscript]
  • tfoot[role=subscript]
  • thead[role=subscript]
  • time[role=subscript]
  • u[role=subscript]
  • var[role=subscript]