MathML Fractions
- Fraction is created by using the <mfrac> tag. Numerator is taken as the first argument, followed by the denominator. This tag is used to display the basic algebra equations on web pages.
Example
Equivalent MathML Code
Read Also
Attributes of Fraction element
- Attributes used with <mfrac> element to control its appearance:
MathML Fractions
Index | Attribute | Description |
---|---|---|
1 | linethickness | It mentions the stroke width of the fraction bar. Its value should be a length measured in px, pt, em, etc. |
2 | numalign | It mentions the alignment of the numerator. |
3 | denomalign | It mentions the alignment of the denominator. |
4 | bevelled | It mentions whether the fraction should be displayed vertically or inline. It can be true or false. |
Arranging complex fraction expressions
- Attributes are used to manually arrange the complex expressions.
Example
- Following complex fraction expression:
Read Also
Equivalent MathML Code
Supporting Browsers
Element | |||||
---|---|---|---|---|---|
<mfrac> | No | No | Yes | No | Only Basic Support |