This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

mfrac

Summary

The MathML mfrac element is used to display fractions.

Overview Table

DOM Interface
mathml

Examples

This example demonstrates a simple usage of the mfrac element:



<math>
  <mfrac bevelled="true">
     <mfrac>
        <mi> a </mi>
        <mi> b </mi>
     </mfrac>
     <mfrac>
        <mi> c </mi>
        <mi> d </mi>
     </mfrac>
  </mfrac>
</math>

Related specifications

MathML 3.0
W3C Recommendation

Attributes

bevelled
Specifies the way the fraction is displayed. If true, the fraction line is bevelled, which means that numerator and denominator are displayed side by side and separated by a slash (/). Otherwise, if set to false (which is the default value), numerator and denominator are on top of each other.
denomalign
The alignment of the denominator under the fraction. Possible values are: left, center (default), and right.
linethickness
The thickness of the horizontal fraction line. The default value is medium, but thin, thick, and other length values can be set.
numalign
The alignment of the numerator over the fraction. Possible values are: left, center (default), and right.

Attributions

  • Mozilla Developer Network cc-by-sa-small-wpd.svg: Article