<mtext>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2023.
Das <mtext>
MathML-Element wird verwendet, um beliebigen Text ohne notationale Bedeutung darzustellen, wie Kommentare oder Anmerkungen.
Um Text mit notationaler Bedeutung darzustellen, verwenden Sie stattdessen <mi>
, <mn>
, <mo>
oder <ms>
.
Attribute
Dieses Element akzeptiert die globalen MathML-Attribute.
Beispiele
html
<math display="block">
<mtext>Theorem of Pythagoras</mtext>
</math>
<math display="block">
<mtext>/* comment here */</mtext>
</math>
Technische Zusammenfassung
Implizite ARIA-Rolle | Keine |
---|
Spezifikationen
Specification |
---|
MathML Core # text-mtext |