HTML5 MathML
HTML5 MathML Complete Reference
This reference lists the MathML elements you can use inside the HTML5 <math> root. It covers the token, layout, script and table elements of Presentation MathML.
MathML Elements
| Element | Description |
|---|---|
| <math> | Root element of every MathML expression. |
| <mrow> | Groups sub-expressions horizontally as a single unit. |
| <mi> | An identifier such as a variable or function name. |
| <mn> | A numeric literal. |
| <mo> | An operator, fence or separator. |
| <mtext> | Ordinary text inside a formula. |
| <mspace> | A blank space of a given size. |
| <ms> | A string literal, rendered with quotation marks. |
| <mglyph> | A custom glyph image for symbols not in the font. |
| <mfrac> | A fraction (numerator over denominator). |
| <msqrt> | A square root radical. |
| <mroot> | A radical with an explicit index (nth root). |
| <msup> | A base with a superscript. |
| <msub> | A base with a subscript. |
| <msubsup> | A base with both subscript and superscript. |
| <mover> | A base with an over-script. |
| <munder> | A base with an under-script. |
| <munderover> | A base with under- and over-scripts. |
| <mmultiscripts> | A base with multiple pre- and post-scripts. |
| <mprescripts> | Separator marking the start of pre-scripts in <mmultiscripts>. |
| <none> | An empty script placeholder inside <mmultiscripts>. |
| <mfenced> | Content wrapped in fences (deprecated). |
| <menclose> | Draws an enclosing notation around content. |
| <mpadded> | Adjusts spacing and dimensions around content. |
| <mphantom> | Reserves space for content without rendering it. |
| <mstyle> | Sets style attributes for its descendants. |
| <merror> | Displays an error message from a processor. |
| <maction> | Binds an interactive action to a subexpression. |
| <mtable> | A table or matrix. |
| <mtr> | A row inside an <mtable>. |
| <mlabeledtr> | A table row whose first cell is a label. |
| <mtd> | A cell inside a table row. |
| <semantics> | Associates presentation with semantic annotations. |
| <annotation> | A text annotation inside <semantics>. |
| <annotation-xml> | An XML annotation inside <semantics>. |
ℹ️
Elements marked deprecated (such as <mfenced>) are not in MathML Core; prefer the modern equivalents for reliable cross-browser rendering.
