HTML Sup Tag

HTML Supersctipt TagHTML Superscript Tag <sup> is used to define a superscript text in HTML.

A Superscript text appears to be half a character above the normal character top.

Superscript Tag <sup> is used to write formulas e.g. e=mc2 or 22=4.

Superscript Tag is a closed tag and hence needs to be closed using the closing Superscript HTML Tag </sup>.


Syntax of HTML Superscript Tag

<sup>
Some formula here..
</sup>

Example of HTML Superscript Tag

HTML Superscript Tag Code Output

 Einstein’s Equation for Mass Energy Equivalence is:

E=mc<sup>2</sup>
Einstein’s Equation for Mass Energy Equivalence is:E=mc2

Here in the HTML Superscript tag example above we can see that the “2” in
mc2 comes as a Superscript and that’s the use of Superscript HTML tag.

HTML Superscript Tag Supports all HTML Global Attributes and HTML Event Attributes.


HTML Superscript Tag Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Tagged , , , , , , , , , , , , , , , , , . Bookmark the permalink.