このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

<mi>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2023年1月⁩.

<mi>MathML の要素で、内容が関数名、変数、記号定数などの 識別子 としてレンダリングされることを示します。また、用語をマークアップするために、任意のテキストを保持することもできます。

属性

この要素はグローバル MathML 属性を受け入れます。 単一の文字を含む <mi> 要素では、 mathvariant 属性の既定値が italic になります。

html
<math display="block"> <!-- Multiple characters, default mathvariant is "normal". --> <mi>sin</mi> </math> <math display="block"> <!-- Single character, default mathvariant is "italic". --> <mi>y</mi> </math> <math display="block"> <!-- Overriding default mathvariant. --> <mi mathvariant="normal">F</mi> </math> 

仕様書

Specification
MathML Core
# dfn-mi

ブラウザーの互換性