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 ASCII character code;
½ 3 ½
Hope helps;
You can try this:
3<sup>1</sup>⁄<sub>2</sub>years
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With