"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:

<munder> numerator denominator </munder>

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></math>
    1+5
      2

 

"msub" - MathML Subscript Element

"mrow" - MathML Group Element

Complex MathML Elements

⇑⇑ MathML (Mathematical Markup Language)

2025-03-29, 332🔥, 0💬