How should I express fractions like 15/16ths in HTML?

前端 未结 7 1481
慢半拍i
慢半拍i 2021-02-05 04:49

I know there are HTML entities for 1/2, 1/4, and 3/4, but are there others? Like 1/3 or 1/8? Is there a good way to encode arbitrary fractions?

7条回答
  •  说谎
    说谎 (楼主)
    2021-02-05 05:06

    There is also a standard called MathML. But is for XML unfortunately. However if you have more expressions you might consider switching to basic XML.

提交回复
热议问题