MathML HTML

A Simple Polynomial

To create simple polynomial expression, we can use the msup element to create exponents.

SimplePolynomial.html

<!doctype html>
<html>
  <head>
    <title>XoaX.net's MathML: A Simple Polynomial Expression Example</title>
  </head>
  <body>
    <p>
      This is a simple polynomial expression
      <math display='block'>
      	<mrow>
      		<msup>
      			<mi>x</mi>
      			<mn>2</mn>
      		</msup>
      		<mo>+</mo>
      		<mn>2</mn>
      		<mi>x</mi>
      		<mi>y</mi>
      		<mo>+</mo>
      		<msup>
      			<mi>y</mi>
      			<mn>2</mn>
      		</msup>
      	</mrow>
      </math>
    </p>
  </body>
</html>
 

Output

 
 

© 2007–2025 XoaX.net LLC. All rights reserved.