YLBTECH-HTML5:HTML5 MathML |
1, HTML5 MathML
HTML5 can use the MathML element in the document, and the corresponding label is <math>...</math> .
MathML is a mathematical markup Language , a standard based on XML (a subset of standard generic markup languages) used to write mathematical symbols and formulas on the Internet.
Note: Most browsers support MathML tags, and if your browser does not support this tag, you can use the latest version of Firefox or Safari browser to view it.
MathML instances
Here is a simple example of a MathML:
<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "UTF-8"> <title>Beginner's Tutorial (runoob.com)</title> </Head> <Body> <Mathxmlns= "Http://www.w3.org/1998/Math/MathML"> <Mrow> <Msup><mi>A</mi><mn>2</mn></Msup> <Mo>+</Mo> <Msup><mi>B</mi><mn>2</mn></Msup> <Mo>=</Mo> <Msup><mi>C</mi><mn>2</mn></Msup> </Mrow> </Math> </Body></HTML>
Try it?
Run the result diagram as follows:
The following example adds some operators:
<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "UTF-8"> <title>Beginner's Tutorial (runoob.com)</title> </Head> <Body> <Mathxmlns= "Http://www.w3.org/1998/Math/MathML"> <Mrow> <Mrow> <Msup> <mi>X</mi> <mn>2</mn> </Msup> <Mo>+</Mo> <Mrow> <mn>4</mn> <Mo>?</Mo> <mi>X</mi> </Mrow> <Mo>+</Mo> <mn>4</mn> </Mrow> <Mo>=</Mo> <mn>0</mn> </Mrow> </Math> </Body></HTML>
Try it?
Run the result diagram as follows:
The following example is a 2x2 matrix that can be viewed in Firefox version 3.5 or later:
<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "UTF-8"> <title>Beginner's Tutorial (runoob.com)</title> </Head> <Body> <Mathxmlns= "Http://www.w3.org/1998/Math/MathML"> <Mrow> <mi>A</mi> <Mo>=</Mo> <mfencedOpen="["Close="]"> <mtable> <mtr> <MTD><mi>X</mi></MTD> <MTD><mi>Y</mi></MTD> </mtr> <mtr> <MTD><mi>Z</mi></MTD> <MTD><mi>W</mi></MTD> </mtr> </mtable> </mfenced> </Mrow> </Math> </Body></HTML>
Try it?
Run the result diagram as follows:
2.
1, HTTP://WWW.RUNOOB.COM/HTML/HTML5-MATHML.HTML2,
|
Ylbtech Source: http://ylbtech.cnblogs.com/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility. |
HTML5:HTML5 MathML