Embedded Content
Inline MathML in HTML
The math element starts a MathML subtree in HTML. The parser assigns MathML elements their own namespace. Use MathML to express mathematical structure, such as variables and fractions, instead of manually arranging unrelated text. Rendering and assistive technology support should be tested for the actual expression. MathML has its own element vocabulary.
Formal Syntax & Structure
html syntaxhtml
<math> <mi>x</mi></math>Return Value
MathMLElement
MathML element at the root of the mathematical expression.
Working Example
Example Snippethtml
<p>One half:</p><math> <mfrac> <mn>1</mn> <mn>2</mn> </mfrac></math>