HTML/Elements/math

From Web Education Community Group
< HTML‎ | Elements
Revision as of 13:10, 19 November 2011 by Rworth (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<math>

The <math> element represents the root of a MathML fragment.

HTML Attributes

see MathML 3.0 - 2.2 The Top-Level math Element.


Examples

[try it]

  <math>
    <mrow>
      <mi>a</mi>
      <mo>⁢</mo>
      <msup>
        <mi>x</mi>
        <mn>2</mn>
      </msup>
      <mo>+</mo>
      <mi>b</mi>
      <mo>⁢</mo>
      <mi>x</mi>
      <mo>+</mo>
      <mi>c</mi>
    </mrow>
  </math>

Math01.png

MathML, a language for describing mathematics in XML

MathML is an XML application for describing mathematical notation and capturing both its structure and content. Only a correct HTML5 parser, using the syntax defined in 8 The HTML syntax, will be able to properly interpret MathML elements when using text/html. When using application/xhtml+xml, one must use proper namespaces to ensure that MathML elements are interpreted correctly.


HTML Reference

The HTML5 specification references the <math> element in 4.8.14 MathML.


See also