Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/mathml/element/mtext/index.md
6538 views
---
title: <mtext> slug: Web/MathML/Element/mtext browser-compat: mathml.elements.mtext
---

{{MathMLRef}}

The <mtext> MathML element is used to render arbitrary text with no notational meaning, such as comments or annotations.

To display text with notational meaning, use {{ MathMLElement("mi") }}, {{ MathMLElement("mn") }}, {{ MathMLElement("mo") }} or {{ MathMLElement("ms") }} instead.

Attributes

This element accepts the global MathML attributes.

Examples

<math display="block"> <mtext>Theorem of Pythagoras</mtext> </math> <math display="block"> <mtext>/* comment here */</mtext> </math>

{{ EmbedLiveSample('mtext_example', 700, 200, "", "") }}

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}