HTML5 | MathML Complete Reference

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:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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

chevron_right


Output:

Complete Reference:

full-stack-img




My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.