Skip to content
Related Articles

Related Articles

HTML5 MathML Complete Reference

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 17 Mar, 2022

The MathML comes in HTML5 the current MathML version is 3 it was introduced in the year 2015. The MathML stands for Mathematics Markup Language. It is used to represent the mathematical equation or expression in web browsers like other HTML elements. The MathML is used to describing mathematics as a basis for the machine to machine communication, it is intended handling by specialized authoring tools such as equation editors and it is meaningful to other applications also.

Example:




<!DOCTYPE html> 
<html
  
<head
    <title>HTML5 MathML</title
</head
  
<body style="text-align:center;"
  
    <h1 style="color:green"
        GeeksforGeeks 
    </h1
  
    <h3>HTML5 MathML</h3
  
    <!--start tag of the whole representation-->
    <math
          
        <!-- Creating Matrix -->
        <mrow
            <mi>A</mi
            <mo>=</mo
  
            <mfenced open="[" close="]"
  
                <mtable
                    <mtr
                        <mtd
                            <mi>a</mi
                        </mtd
                        <mtd
                            <mi>b</mi
                        </mtd
                    </mtr
  
                    <mtr
                        <mtd
                            <mi>x</mi
                        </mtd
                        <mtd
                            <mi>y</mi
                        </mtd
                    </mtr
  
                </mtable
  
            </mfenced
        </mrow
          
        <!-- Creating equation -->
        <br><br
        <msub
            <mi>Geeks</mi
            <mn>4</mn
        </msub
        <mo>+</mo
        <mn>Geeks</mn
        <mo>=</mo
        <msub
            <mi>G</mi
        </msub
        <mo>→</mo
        <msub
            <mi>e</mi
            <mn>2</mn
        </msub
        <mo>→</mo
        <mi>k</mi
        <mi>s</mi
        <mn>4 
        </mn
        <msub
            <mi>G</mi
        </msub
        <mo>→</mo
        <msub
            <mi>e</mi
            <mn>2</mn
        </msub
        <mo>→</mo
        <mi>k</mi
        <mi>s</mi
    </math
</body
  
</html


Output:

Complete Reference:


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!