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

 formula-fraction

Equivalent MathML Code

<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>  
  <mfrac>  
    <mn>1</mn>  
    <mi>x</mi>  
  </mfrac>  
</math>  

Attributes of Fraction element

  • Attributes used with <mfrac> element to control its appearance:
 MathML Fractions

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

Read Also

Equivalent MathML Code

<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>  
  <mfrac linethickness='3px'>  
    <mfrac bevelled='true'>  
      <mn>1</mn>  
      <mi>x</mi>  
    </mfrac>  
    <mrow>  
      <mi>y</mi>  
      <mo>−</mo>  
      <mn>2</mn>  
    </mrow>  
  </mfrac>  
</math>  

Supporting Browsers

Element
<mfrac> No No Yes No Only Basic Support


Related Searches to MathML Fractions

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×