Firefox Tomorrow

mathml element

<msubsup>

View on MDN ↗

The <msubsup> MathML element is used to attach both a subscript and a superscript, together, to an expression.

It uses the following syntax: <msubsup> base subscript superscript </msubsup>.

Attributes

This element’s attributes include the global MathML attributes as well as the following deprecated attributes:

  • subscriptshift Deprecated
    • : A length-percentage indicating the minimum amount to shift the baseline of the subscript down.
  • superscriptshift Deprecated
    • : A length-percentage indicating the minimum amount to shift the baseline of the superscript up.

[!NOTE] For the subscriptshift and superscriptshift attributes, some browsers may also accept legacy MathML lengths.

Examples

<math display="block">
  <msubsup>
    <mo>&#x222B;<!--Integral --></mo>
    <mn>0</mn>
    <mn>1</mn>
  </msubsup>
</math>
Interactive exampleOpen the canonical MDN source to run this embedded demo.

Technical summary

Implicit ARIA role None

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also

  • msub (Subscript)
  • msup (Superscript)
  • mmultiscripts (Prescripts and tensor indices)