How to define MathML in HTML5

In this article, I will go to define MathML in HTML5.
  • 1815

Introduction of MathML in HTML5

  • MathML refers to Math Markup Language.

  • MathML is an application of XML.

  • MathML is describing mathematical notations and capturing both its structure and content.

  • MathML aims at integrating mathematical formulae into World Wide Web pages and other documents.

  • MathML was not officially supported in HTML.

  • MathML deals not only with the presentation but also the meaning of formula components.

MathML Examples

Following is a valid HTML5 document with MathML:

<!doctype html>

  <html>

  <head>

  <meta charset="UTF-8">

  <title>Pythagorean theorem</title>

  </head>

  <body>

   <h2>Theorem Of Pythagorean</h2>

    <math xmlns="http://www.w3.org/1998/Math/MathML">

      <mrow>

        <msup><mi>a</mi><mn>2</mn></msup>

        <mo>+</mo>

        <msup><mi>b</mi><mn>2</mn></msup>

        <mo>=</mo>

        <msup><mi>c</mi><mn>2</mn></msup>

      </mrow>

    </math>

  </body>

</html>

This would produce following result

introduction of mathml.jpg

Further Readings

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.