HTML <sup> tag
The <sup> tag is used to show superscript.
Normally, you should use this for showing scientific and mathematical formulas.
The text inside this element appears at the top of its normal position from the baseline.
And, this will appear almost half of its original size in the browser.
Syntax:
<sup>text…</sup>
CSS Alternative
vertical-align: super;
font-size: smaller;
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
None | None | None |
Attributes used with <sup> tag
NONE
Note/Warning/Info This tag is not for styling the normal text but to create a superscript only.
Global Attributes
The <sup> tag supports Global attributes.
Event Attributes
The <sup> tag supports Event attributes.
Supporting Browsers
Related Tags
<sub> tag.