# <msup>

MathML `の <msup>` 要素は，式に上付きを付けるために用います。

## 属性

class, id, style
Provided for use with stylesheets.
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.
superscriptshift

## 例

Sample rendering:

Rendering in your browser: ${X}^{2}$

``````<math>

<msup>
<mi>X</mi>
<mn>2</mn>
</msup>

</math>
``````

## ブラウザ毎の互換性

BCD tables only load in the browser

### Gecko-specific notes

• Starting with Gecko 26.0 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2) it is no longer possible to use `<none />` as a child element. The rendering has been made more consistent with equivalent configurations of `<msub>` and `<mmultiscripts>` and a bug with an incorrect application of` the superscriptshift` attribute has been fixed (see バグ 827713 for details).

## 仕様

Specification Status Comment
MathML 3.0
msup の定義

MathML 2.0
msup の定義

• `<msub>` (Subscript)
• `<msubsup>` (Subscript-superscript pair)
• `<mmultiscripts>` (Prescripts and tensor indices)