HTML <sup> tag
The <sup> tag is used to make text appear superscripted. Superscripted text will appear half a character above regular text.
Standard attributes
class, dir, id, lang, style, title, xml:lang
For more information on standard attributes, check out our HTML standard attributes reference page.
Event attributes
onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress, onkeyup
For more information on event attributes, check out our HTML event attributes reference page.
Example
25<sup>2</sup> = 625
You can find our awesome photo studio on
59<sup>th</sup> street and 2<sup>nd</sup> avenue.
Output:
252 = 625
You can find our awesome photo studio on 59th street and 2nd avenue.
Tips & notes
Don't use the <sup> tag simply to make some text appear superscripted because it looks cool. Use it according to language rules when it's actually necessary to make text appear superscripted like in the above example.