MathML in HTML 5
Math Tag Syntax
Rules for coding the MathML tags
<math> Tag Attributes
Attributes of the <math> tag
global attributes | In addition to the personal attributes of the <xxx> tag below, any of the common HTML attributes can also be coded. |
<math> Tag Examples
Examples of the math
tag in HTML 5
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <munder> <munder> <mrow> <mover> <mover> <mrow> <mi style="font-family: Verdana, sans-serif">style</mi> </mrow> <mo style="font-size:smaller">︷</mo> </mover> <mtext style="font-size:larger; font-weight: bold">name</mtext> </mover> <mo>=</mo> <mover> <mover> <mrow> <ms style="font-family: Verdana, sans-serif">font-weight: bold</ms> <!-- <ms> automatically adds quotes --> </mrow> <mo style="font-size:smaller">︷</mo> </mover> <mtext style="font-size:larger; font-weight: bold">value</mtext> </mover> </mrow> <mo style="font-size:smaller">︸</mo> </munder> <mtext style="font-size:larger; font-weight: bold">attribute</mtext> </munder> </mrow> </math>
Note: Since support for MathML depends on the browser and available fonts, the appearance of the working code above varies greatly. In Firefox on Windows with the Fonts for MathML-enabled Mozilla installed, the code above looks like this:
Changes in HTML 5 - MathML
What's new in HTML 5
Support for MathML is one of the new features of HTML 5.
Differences between HTML 5 and earlier versions of HTML
MathML was not supported in older versions of HTML.