In MathML, fraction is created by using the <mfrac> tag. The numerator is taken as the first argument, followed by the denominator. This tag is used to display the basic algebra equations on web pages.
For example: To represent
Use the following MathML code:
Attributes of Fraction element
There are some useful attributes used with <mfrac> element to control its appearance:
Arranging complex fraction expressions
The above attributes are used to manually arrange the complex expressions.
For example: See the following complex fraction expression:
Equivalent MathML code: