Semantics

Content that represents a mathematical expression.

Additional info from the ARIA specification

Content with the role math is intended to be marked up in an accessible format such as MathML [MathML3], or with another type of textual representation such as TeX or LaTeX, which can be converted to an accessible format by native browser implementations or a polyfill library.

While it is not ideal to use an image of a mathematical expression, there exists a significant amount of legacy content where images are used to represent mathematical expressions. Authors SHOULD ensure that images of math are labeled by text that describes the mathematical expression as it might be spoken.

Abstract Role

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

Content Categories

  • Flow ContentAn element that structures and organizes the body of a web document.

Allowed Descendants

Flow 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.

  • math

Explicitly allowed

  • None

Elements that can have any role

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