<msubsup>

Baseline 2023
Newly available

Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

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 Non-standard

A <length-percentage> indicating the minimum amount to shift the baseline of the subscript down.

superscriptshift Deprecated 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

html
<math display="block">
  <msubsup>
    <mo>&#x222B;<!--Integral --></mo>
    <mn>0</mn>
    <mn>1</mn>
  </msubsup>
</math>

Technical summary

Specifications

Specification
MathML Core
# subscripts-and-superscripts-msub-msup-msubsup

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
msubsup
subscriptshift
DeprecatedNon-standard
superscriptshift
DeprecatedNon-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.

See also