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>·</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)