<msubsup>

The MathML <msubsup> 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

class, id, style
Provided for use with stylesheets.
displaystyle
A Boolean value specifying whether more vertical space is used for displayed equations or, if set to false, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when displaystyle is set to true. See also movablelimits on <mo>.
href
Used to set a hyperlink to a specified URI.
mathbackground
The background color. You can use #rgb, #rrggbb and HTML color names.
mathcolor
The text color. You can use #rgb, #rrggbb and HTML color names.
subscriptshift
The minimum space by which to shift the subscript below the baseline of the expression, as a length value.
This attribute is deprecated and will be removed in the future.
superscriptshift
The minimum space by which to shift the superscript above the baseline of the expression, as a length value.
This attribute is deprecated and will be removed in the future.

Examples

Sample rendering: x1

Rendering in your browser: 0 1

<math displaystyle="true">

  <msubsup>
    <mo> &#x222B;<!--Integral --> </mo>
    <mn> 0 </mn>
    <mn> 1 </mn>
  </msubsup>

</math>

Specifications

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

Browser compatibility

BCD tables only load in the browser

See also