Judging by your comments, it looks like you are specifically asking how to display fractions. In this case, many fractions are defined as HTML objects. For example, some of these objects:
½ ¼ ⅛ ⅔ ⅖ ¾ ⅜
Result:
& frac12; & Frac14; & Frac18; ? Frac23; & Frac25; ? Frac34; & Frac38;
Note that not all browsers support these named objects, but you can use their Unicode values ββinstead. If you want to be able to display a fraction, not just those that have entities, you can use the slash fraction, ⁄ (& frasl;). This character overlaps the pixels from the previous and next characters to make a very neat fraction. It is best used in combination with superscript and index numbers:
<sup>39</sup>⁄<sub>40</sub>
Result:
39 ? <sub> 40sub>
Additional literature:
http://changelog.ca/log/2008/07/01/writing_fractions_in_html
If your font supports it, you can also embed indexes and indexes directly into your HTML from an application such as charmap.exe. See Conrad Rudolph for a great answer for an example.
Andy E Dec 15 '10 at 11:13 2010-12-15 11:13
source share