开发者

How can we add superscript in html page?

开发者 https://www.devze.com 2023-03-10 14:36 出处:网络
<td>20<sup>o</sup>C</td> is not giving the output with \'o\' as super script.
 <td>20<sup>o</sup>C</td>

is not giving the output with 'o' as super script. How can we add superscript in html page? I am getting the output as

开发者_如何学编程

20oC only!!


Use &deg; to get the ° symbol.

P.S. <sup> should have worked.


This doesn't make the text superscript but it will meet your needs for this occasion

<td>20&deg;C</td>


Superscripts in HTML can be implied using the tag. Do it as this :

x<sup>2</sup>+2x+1

0

精彩评论

暂无评论...
验证码 换一张
取 消