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:
- HTML5 | MathML Introduction
- MathML <math> tag
- MathML <maction> tag
- MathML <menclose> Tag
- MathML <merror> Tag
- MathML <mfenched> tag
- MathML <mfrac> tag
- MathML <mglyph> Tag
- MathML <mi> Tag
- MathML <mlabeledtr> tag
- MathML <mmultiscripts> Tag
- MathML <mn> Tag
- MathML <mo> Tag
- MathML <mover> Tag
- MathML <mpadded> Tag
- MathML <mphantom> Tag
- MathML <mroot> Tag
- MathML <mrow> Tag
- MathML <ms> Tag
- MathML <mspace> Tag
- MathML <msqrt> Tag
- MathML <style> Tag
- MathML <msub> Tag
- MathML <msubsup> Tag
- MathML <msup> Tag
- MathML <mtable> Tag
- MathML <mtd> Tag
- MathML <mtext> Tag
- MathML <mtr> Tag
- MathML <mth> Tag
- MathML <munder> Tag
- MathML <munderover> Tag
- MathML <semantics> Tag