To produce a superscript text we will use the <sup> tag.
<p>This text is <sup>exponential!</sup></p>
This text is exponential!
HTML – Exponents
We can use the <sup> tag to write mathematical expressions, as you can see:
3<sup>2</sup> = 9 <br /> 14<sup>x</sup>
HTML – Footer notes
The superscript can be also used for references, explanations, and any other additional information in the footer notes.
<p>A simple text to show the superscript<sup>1</sup> application.</p> <hr /> <p><small>1. A superscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly above it.</small></p>
A simple text to show the superscript1 application.
1. A superscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly above it.
You can play with this element, which is very rarely used but it is very useful.