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

A <length-percentage> indicating the minimum amount to shift the baseline of the superscript up.

Note: For the superscriptshift attribute, some browsers may also accept legacy MathML lengths.


<math display="block">


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

Browser compatibility

BCD tables only load in the browser

See also