<msup>

Baseline 2023
Newly available

Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

<msup>MathML の要素で、式に上付き文字を付けるために用います。

<msup> ベース 上付き文字 </msup> という構文を使用します。

属性

この要素の属性には、グローバル MathML 属性の他、以下の非推奨属性があります。

superscriptshift 非推奨; 非標準

<length-percentage>で、上付き文字のベースラインを上に移動させる最小量を示します。

メモ: superscriptshift 属性については、ブラウザーによっては古い MathML の長さも受け入れられるかもしれません。

html
<math display="block">
  <msup>
    <mi>X</mi>
    <mn>2</mn>
  </msup>
</math>

仕様書

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

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
msup
superscriptshift
DeprecatedNon-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.

関連情報

  • <msub> (下付き文字)
  • <msubsup> (上付き文字と下付き文字の組)
  • <mmultiscripts> (前付き文字とテンソルインデックス)