Loading...
<math>
x^2 + 1
</math><math>
<msup><mi>x</mi><mn>2</mn></msup>
<mo>+</mo>
<mn>1</mn>
</math>MathML elements mark the base, exponent and operator, so the formula renders and reads correctly.
<math> without <mi>, <mn> and <mo>.display='block', inline ones use the default.<mi>, numbers use <mn> and operators use <mo>.No. Browsers in the support table render MathML natively. Libraries are only needed to convert other formats.
Use <mfrac> with two children: the numerator first, then the denominator.