How to write fractions in html? I want to write some like this. "3 Β½ years" in html. How to do it?
HTML:
<html> <body> <p>3 1/2 years</p> </body> </html>
You can use;
½ 3 Β½
or you can use the ASCII character code;
½ 3 Β½
Hope helps;
You can use this code:
½
Then your code should look like this:
<p>3 ½ years</p>
3 & frac12 years
ΒΌ ¼ Β½ ½
Just enter the nominee and denominator at the end
You can try the following:
3<sup>1</sup>⁄<sub>2</sub>years