{
  "id": "enwiki-001362298769",
  "slug": "mathml",
  "title": "MathML",
  "qid": "",
  "lead": "Mathematical Markup Language (MathML) is a pair of mathematical markup languages, an application of XML for describing mathematical notation and capturing both its structure and content. Its aim is to natively integrate mathematical formulae into World Wide Web pages and other documents. It is part of HTML5 and standardised by ISO/IEC since 2015.",
  "body": "Mathematical Markup Language (MathML) is a pair of mathematical markup languages, an application of XML for describing mathematical notation and capturing both its structure and content. Its aim is to natively integrate mathematical formulae into World Wide Web pages and other documents. It is part of HTML5 and standardised by ISO/IEC since 2015. == Presentation and semantics == MathML deals not only with the presentation but also the meaning of formula components (the latter part of MathML is known as \"Content MathML\"). Because the meaning of the equation is preserved separate from the presentation, how the content is communicated can be left up to the user. For example, web pages with MathML embedded in them can be viewed as normal web pages with many browsers, but visually impaired users can also have the same MathML read to them through the use of screen readers (e.g. using the VoiceOver in Safari). JAWS from version 16 onward supports MathML voicing as well as braille output. The quality of rendering of MathML in a browser depends on the installed fonts. The STIX Fonts project have released a comprehensive set of mathematical fonts under an open license. The Cambria Math font supplied with Microsoft Windows had slightly more limited support. A valid MathML document typically consists of the XML declaration, DOCTYPE declaration, and document element. The document body then contains MathML expressions which appear in elements as needed in the document. Often, MathML will be embedded in more general documents, such as HTML, DocBook, or other XML-based formats. a &InvisibleTimes; x 2 + b &InvisibleTimes; x + c A complete document that consists of just the MathML example above, is shown here: a &InvisibleTimes; x 2 + b &InvisibleTimes; x + c a x 2 b x c Content MathML is nearly isomorphic to expressions in a functional language such as Scheme and other dialects of Lisp. amounts to Scheme's , and the many operator and function elements amount to Scheme functions. With this trivial literal transformation, plus un-tagging the individual tokens, the example above becomes: (plus (times a (power x 2)) (times b x) c) This reflects the long-known close relationship between XML element structures, and LISP or Scheme S-expressions. x = &minus; b &pm; b 2 &minus; 4 &it; a &it; c 2 &it; a x = \\frac{-b\\pm\\sqrt{b^2-4ac}}{2a} x = {-b plusminus sqrt {b^2 - 4 ac}} over {2 a} This example uses the element, which can be used to embed a semantic annotation in non-XML format, for example to store the formula in the format used by an equation editor such as StarMath or the markup using LaTeX syntax. The field is usually a MIME type, although most of the equation encodings don't have such a registration; freeform text may be used in such cases. Although less compact than other formats, the XML structuring of MathML makes its content widely usable and accessible, allows near-instant display in applications such as web browsers, and facilitates an interpretation of its meaning in mathematical software products. MathML is not intended to be written or edited directly by humans. Example of MathML embedded in an XHTML file Example of MathML embedded in an XHTML file The area of a circle is &#x03C0; &#x2062; r 2 . Inline MathML is also supported in HTML5 files. There is no need to specify namespaces as there was in XHTML. Example of MathML embedded in an HTML5 file Example of MathML embedded in an HTML5 file The area of a circle is &pi; &InvisibleTimes; r 2 . P 1 x OpenMath support is part of the OpenDocument office suite specification, which explicitly allows embedding OpenMath objects alongside MathML. Such that MathML renders the equation and an OpenMath is a semantic representation so that software can compute with it. Office suites that default to using the OpenDocument standard, such as LibreOffice and Collabora Online currently stick to the MathML standard for interoperability, comparatively, OpenMath is not defined in Microsoft's proprietary document formats for docx, pptx, and xlsx. The OMDoc format has been created for markup of larger mathematical structures than formulae, from statements like definitions, theorems, proofs, and examples, to complete theories and even entire text books. Formulae in OMDoc documents can either be written in Content MathML or in OpenMath; for presentation, they are converted to Presentation MathML.",
  "categories": [
    "102876480",
    "109364155",
    "20477134",
    "22915716",
    "23118434",
    "23603337",
    "26918715",
    "42539518",
    "60231918",
    "68305048"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1362298769",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1783034690.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001362298769",
    "type": "webpage",
    "title": "MathML",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/mathml",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001362298769",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1362298769",
    "note": "Immutable snapshot enwiki-001362298769"
  }
}