How to Create Superscript text in HTML

You create superscript text in HTML by wrapping the superscript text within the <sup> and the </sup> tags. For example, here we superscript the "th" using this HTML ...

And the output from the browser will look like this ...

This come in handy when you want to superscript a footnote that links to a reference defined elsewhere in the web page. Consider the following HTML where the footnote 2 at the end of the sentence is superscripted.

We had also made the "2" a link to a named anchor called "footnote2" defined at the bottom of the page. And this is what the user will see in the browser...

So now when user clicks on the superscript "2", it will jump to the bottom of the page where the named anchor to the footnote reference is defined.

More...

You can learn more about the sup tag from w3schools and about
named anchors from htmlcodetutorial