HTML - How to display numerical fractions

Using superscript and subscript.

916
<sup>9</sup>
&frasl;
<sub>16</sub>

&frasl; is the HTML entity code for Fraction Slash.


Using HTML Entities

¼
&frac14;
One quarter
&frac13;
One third
½
&frac12;
One half
&frac23;
Two thirds
¾
&frac34;
Three quarters

Also:

&frac18, &frac38, &frac58, &frac78.

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath