<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.

We'd love to hear more about your role and the company you work for
Please help us by answering a few questions.

<mtext> MathML 元素用于呈现没有符号意义的任意文本,例如注释或注解。

若要显示具有符号意义的文本,请改用 <mi><mn><mo><ms>

属性

该元素接受全局 MathML 属性

示例

html
<math display="block">
  <mtext>勾股定理</mtext>
</math>

<math display="block">
  <mtext>/* 在此注释 */</mtext>
</math>

规范

Specification
MathML Core
# text-mtext

浏览器兼容性