<mtext>

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.

<mtext>MathML の要素で、コメントや注釈などの表記の意味をもたない任意のテキストをレンダリングするために使用されます。

表記の意味テキストを表示するには、 <mi><mo> を代わりに使用してください。

属性

この属性はグローバル MathML 属性を受け入れます。

html
<math display="block">
  <mtext>ピタゴラスの定理</mtext>
</math>

<math display="block">
  <mtext>/* ここにコメント */</mtext>
</math>

仕様書

Specification
MathML Core
# text-mtext

ブラウザー互換性

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
mtext

Legend

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

Full support
Full support
No support
No support