MathML <mfrac> tag
The HTML5 MathML <mfrac>
tag is an inbuilt element used to insert a fraction symbol between two digits or equations.
Attributes: The <mfrac>
tag accepts the following attributes:
- bevelled: This attribute determines how the fraction is displayed. If the value is set to "true," the numerator and denominator are displayed side by side and separated by a slash. If the value is set to "false" (default value), the numerator and denominator are displayed stacked on top of each other.
- class|id|style: This attribute is used to define the styles for the child elements.
- href: This attribute holds a hyperlink to a specified URL.
- mathbackground: This attribute determines the background color of the math expressions.
- mathcolor: This attribute specifies the color of the math expressions.
- denomalign: This attribute specifies the alignment value of the denominator. Possible values are "left," "center," and "right."
- linethickness: This attribute determines the thickness of the fraction line. Possible values are "thick," "medium," and "thin."
- numalign: This attribute specifies the alignment value of the numerator. Possible values are "left," "right," and "center."