Path: blob/main/files/en-us/web/mathml/element/msubsup/index.md
6532 views
------{{MathMLRef}}
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_inline}} {{Non-standard_Inline}}: A
<length-percentage>indicating the minimum amount to shift the baseline of the subscript down.
superscriptshift{{deprecated_inline}} {{Non-standard_Inline}}: A
<length-percentage>indicating the minimum amount to shift the baseline of the superscript up.
Note: For the
subscriptshiftandsuperscriptshiftattributes, some browsers may also accept legacy MathML lengths.
Examples
{{ EmbedLiveSample('msubsup_example', 700, 200, "", "") }}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{ MathMLElement("msub") }} (Subscript)
{{ MathMLElement("msup") }} (Superscript)
{{ MathMLElement("mmultiscripts") }} (Prescripts and tensor indices)