What is MathML

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

What is MathML

MathML tags are very similar to HTML tags. As HTML tags are used to define headings and paragraphs, in the same manner MathML uses them to describe the various parts of a mathematical expression.

MathML stands for Mathematical Markup language. It is an application of XML for describing mathematical notations and capturing both its structure and content. It is mainly used to integrate the mathematical formulae into World Wide Web pages. Due to MathML, it is possible to put mathematical and scientific content on the web.

Note: Most of the MathML tags are not supported by all browsers except the latest version of firefox. So, you have the latest version of Mozilla Firefox browser.


Simple Example of MathML

If you want to write a quadratic equation on the web page, you must have to use MathMl. For example: To write the following equation on the web page:

x2 + 4x + 4 =0

MathML code:

  1. <mrow>  
  2.   <mrow>  
  3.         <msup> <mi>x</mi> <mn>2</mn> </msup> <mo>+</mo>  
  4.             <mrow>  
  5.               <mn>4</mn>  
  6.               <mo></mo>  
  7.               <mi>x</mi>  
  8.             </mrow>  
  9.     <mo>+</mo>  
  10.     <mn>4</mn>  
  11.   </mrow>  
  12.     <mo>=</mo>  
  13.     <mn>0</mn>  
  14. </mrow>