"mfrac" - MathML Fraction Element

Q

How to use the MathML Fraction Element: "mfrac"?

✍: FYIcenter.com

A

"mfrac" is the MathML Fraction Element that allows you to specify a fraction expression with a numerator sub-element and a denominator sub-element.

The syntax for "mfrac" element is:

<mfrac> numerator denominator </mfrac>

Here is an example of using the "mfrac" element.

<math><mfrac><mrow><mn>1</mn><mo>+</mo><msqrt><mn>5</mn></msqrt></mrow>
  <mn>2</mn></mfrac><mo>=</mo><mn>1.6180339887499</mn></math>
    1+5
      2=1.6180339887499

 

⇒ "msub" - MathML Subscript Element

⇐ "mrow" - MathML Group Element

⇑ Complex MathML Elements

⇑⇑ MathML (Mathematical Markup Language)

2026-02-02, ∼1424🔥, 0💬