MathML HTML

An Absolute Value

This is an example of an absolute value in MathML.

AbsoluteValue.html

<!doctype html>
<html>
  <head>
    <title>XoaX.net's MathML: An Absolute Value Example</title>
  </head>
  <body>
    <p>
      This is an example with an absolute value
      <math display='block'>
      	<mrow>
      		<mtext>|</mtext>
      		<mi>x</mi>
      		<mtext>|</mtext>
      	</mrow>
      	<mo>=</mo>
      	<mi>x</mi>
      	<mtext>&nbsp;&hArr;&nbsp;</mtext>
      	<mrow>
      		<mi>x</mi>
      		<mo>&GreaterEqual;</mo>
      		<mn>0</mn>
      	</mrow>
      </math>
    </p>
  </body>
</html>
 

Output

 
 

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