mathml element
<msubsup>
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- : A
length-percentageindicating the minimum amount to shift the baseline of the subscript down.
- : A
superscriptshiftDeprecated- : A
length-percentageindicating the minimum amount to shift the baseline of the superscript up.
- : A
[!NOTE] For the
subscriptshiftandsuperscriptshiftattributes, some browsers may also accept legacy MathML lengths.
Examples
<math display="block">
<msubsup>
<mo>∫<!--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)