HTML5:HTML5 MathML

Source: Internet
Author: User

YLBTECH-HTML5:HTML5 MathML

1. back to top
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.
2. back to top
3. back to top
4. back to top
5. back to top
1, HTTP://WWW.RUNOOB.COM/HTML/HTML5-MATHML.HTML2,
6. back to top
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.