Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Working with MathML in HTML5

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 323
    Comment on it

    MathMl is a easy way to insert math symbols, expressions and formulas into your web page. The supported browser can convert them to numeric values and symbols. To start writing the math code you have to use <math></math> tag for create the structure of the MathML.

    <mi></mi> tag stands for variable.

    <mn></mn> tag stands for values.

    <mo></mo> tag stands for operator.

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
    </head>
    <body>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
         <mn>4</mn>
         <mi>x</mi>
         <mo>+</mo>
         <mn>4</mn>
         <mo>=</mo>
         <mo>(</mo>
         <mn>2</mn>
         <mo>+</mo>
         <mn>2</mn>
         <mo>)</mo>
         <mi>x</mi>
         <mo>+</mo>
         <mn>2</mn>
         <mo>&middot;</mo>
         <mn>2</mn>
       </math>
    </body>
    </html>
    

    Output:-

    <math xmlns="http://www.w3.org/1998/Math/MathML">
         <mn>4</mn>
         <mi>x</mi>
         <mo>+</mo>
         <mn>4</mn>
         <mo>=</mo>
         <mo>(</mo>
         <mn>2</mn>
         <mo>+</mo>
         <mn>2</mn>
         <mo>)</mo>
         <mi>x</mi>
         <mo>+</mo>
         <mn>2</mn>
         <mo></mo>
         <mn>2</mn>
       </math>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: