files/en-us/web/mathml/reference/element/msup/index.md
The <msup> MathML element is used to attach a superscript to an expression.
It uses the following syntax: <msup> base superscript </msup>.
This element's attributes include the global MathML attributes as well as the following deprecated attribute:
superscriptshift {{deprecated_inline}} {{Non-standard_Inline}}
[!NOTE] For the
superscriptshiftattribute, some browsers may also accept legacy MathML lengths.
<math display="block">
<msup>
<mi>X</mi>
<mn>2</mn>
</msup>
</math>
{{EmbedLiveSample('Examples')}}
{{Specifications}}
{{Compat}}