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>
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
You can use this code:
½
Then, your code should like this:
<p>3 ½ years</p>
3 ½ years