HTML syntax ของ HTML5 อนุญาตให้ใช้ MathML elements ภายในเอกสารด้วยแท็ก <math>...</math>
เว็บเบราว์เซอร์ส่วนใหญ่แสดง MathML tags ได้ หากเบราว์เซอร์ของคุณไม่รองรับ MathML แนะนำให้ใช้ Firefox เวอร์ชันล่าสุด
มาดูตัวอย่าง:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Pythagorean theorem</title>
</head>
<body>
<math xmlns="https://www.w3.org/1998/Math/MathML">
<mrow>
<msup><mi>a</mi><mn>2</mn></msup>
<mo>+</mo>
<msup><mi>b</mi><mn>2</mn></msup>
<mo>=</mo>
<msup><mi>c</mi><mn>2</mn></msup>
</mrow>
</math>
</body>
</html>