<mtext>
Baseline 2023Newly available
Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Das <mtext>
MathML-Element wird verwendet, um beliebigen Text ohne notationale Bedeutung darzustellen, wie z.B. Kommentare oder Anmerkungen.
Um Text mit notationaler Bedeutung anzuzeigen, 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 |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
mtext |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.