Tag Description
The <sup>
tag is used to define superscript text. Superscript text appears half a character above the baseline.
This tag has the form:
<sup>text</sup>
HTML5 and HTML4.01 Differences
None.
Global Attributes
This tag also supports the HTML Global Attributes.
Event Attributes
This tag also supports the HTML Event Attributes.
Examples
The following example shows the basic use of this tag:
<p>E = MC<sup>2</sup></p>
This produces the following result:
E = MC2
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Doctype Declaration Support
The following table lists the doctype declarations this element may appear in:
HTML4.01 / XHTML1.0 | XHTML 1.1 | HTML 5 | ||
---|---|---|---|---|
Traditional | Strict | Frameset | ||
Miscellaneous Information
Defined In: | HTML 2 |
---|---|
Empty Tag: | No |