MathML HTML

Simple Roots

We can use the msqrt and mroot elements to create square roots and mth roots in MathML.

SimpleRoots.html

<!doctype html>
<html>
  <head>
    <title>XoaX.net's MathML: Simple Roots Example</title>
  </head>
  <body>
    <p>
      The square root of 3 is
      <math>
      	<msqrt>
      		<mn>3</mn>
      	</msqrt>
      </math>.
      The cubed root of 2 is
      <math>
      	<mroot>
      		<mn>2</mn>
      		<mn>3</mn>
      	</mroot>
      </math>.
    </p>
  </body>
</html>
 

Output

 
 

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