<msubsup>
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2023.
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:
subscriptshiftDeprecated Non-standard-
A
<length-percentage>indicating the minimum amount to shift the baseline of the subscript down. superscriptshiftDeprecated Non-standard-
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>∫<!--Integral --></mo>
<mn>0</mn>
<mn>1</mn>
</msubsup>
</math>
Technical summary
| Implicit ARIA role | None |
|---|
Specifications
| Specification |
|---|
| MathML Core> # subscripts-and-superscripts-msub-msup-msubsup> |
Browser compatibility
Loading…
See also
<msub>(Subscript)<msup>(Superscript)<mmultiscripts>(Prescripts and tensor indices)