mtext
Summary
The MathML mtext element is used to render arbitrary text with no notational meaning, such as comments or annotations. To display text with notational meaning, use mi and mo instead.
Overview Table
Examples
This example demonstrates a simple usage of the mtext element:
<math>
<mtext> Theorem of Pythagoras </mtext>
<mtext> /* comment here */ </mtext>
</math>
Related specifications
- MathML 3.0
- W3C Recommendation
Attributes
- mathsize
- The size of the content. Possible values are:
small:
Font is rendered smaller than the current font size.normal:
Equivalent to 100% or 1em.big:
Font is rendered larger than the current font size.- or a custom length.
- mathvariant
- This logical class of the identifier, which varies in typography. That is, although the names suggest the typographic style for the class, semantically, items with the same class are treated “the same” within an expression, which might or might not involve displaying them with the named typography. The following values are allowed:
normal
(Default value for more than one character)bold
italic
(Default value for a single character)bold-italic
double-struck
bold-fraktur
script
bold-script
fraktur
sans-serif
bold-sans-serif
sans-serif-italic
sans-serif-bold-italic
monospace
initial
tailed
looped
stretched
Attributions
Mozilla Developer Network : Article