We use the <sup>
element with inline text to display content as a superscript.
Superscript indicates that the content added between the <sup>
and </sup>
tags is a smaller font size and placed slightly above the normal text.
We write tags in HTML inside the <
and >
signs. The syntax is
as follows:
<sup> superscript content </sup>
The following is an example code which shows how to use the <sup>
element in an HTML document.
Free Resources