基本用法

example MathML

原始碼(Equation_MathML.html)
<!DOCTYPE html>

<html>

<head>

  <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=MML_HTMLorMML"></script>
</script>  
</head>

<body>
  <p> <math>
 <mrow>
  <msub>
   <mi>v</mi>
   <mn>2</mn>
  </msub>
  <mo>=</mo><msub>
   <mi>v</mi>
   <mn>1</mn>
  </msub>
  <mo>+</mo><mi>a</mi><mi>t</mi></mrow>
</math>
  </p>
  <p>
    <math>
 <mi>x</mi><mo>=</mo><msub>
  <mi>v</mi>
  <mn>1</mn>
 </msub>
 <mi>t</mi><mo>+</mo><mo stretchy='false'>(</mo><mn>1</mn><mo>/</mo><mn>2</mn><mo stretchy='false'>)</mo><mi>a</mi><msup>
  <mi>t</mi>
  <mn>2</mn>
 </msup>
 
</math>

  </p>

</body>

</html>

example latex

原始碼(Equation_latex.html)
<!DOCTYPE html>

<html>
<head>
<script type="text/javascript" src="http://latex.codecogs.com/latexit.js"></script>
</head>
<body>
Here are my formulas
<div lang="latex">1+sin(x)^2+3</div>
<ul>
<li lang="latex">x^2+y^2+z^2</li>
<li>a^2+b^2</li>
</ul>
</body>
</html>