To raise text in HTML we can use the HTML superscript tag <sup></sup>
.
<sup>text</sup>
Let’s say I have the following HTML:
<div id="div1">Today is December 3rd</div>
If we want to raise the “rd” in 3rd, we can do this using the HTML superscript tag .
<div id="div1">Today is December 3<sup>rd</sup></div>
This would result in the following code:
Today is December 3rd
Leave a Reply