Back to Content

Index

files/en-us/web/mathml/reference/element/mtext/index.md

latest965 B
Original Source

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

html
<math display="block">
  <mtext>Theorem of Pythagoras</mtext>
</math>

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

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

Technical summary

<table class="properties"> <tr> <th scope="row"> <a href="/en-US/docs/Web/Accessibility/ARIA/Reference/Roles">Implicit ARIA role</a> </th> <td> None </td> </tr> </table>

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}