HTML <sup> (Superscript) Tag
Example
<p>This is <sup>superscript</sup> text</p>
Meaning
The <sup> element renders its content as superscripted text.
Notes:
- The CSS property vertical-align can be used to simulate this element.
- This tag must not be used for styling purpose like changing the vertical position of the text. In that case CSS should be used instead: the vertical-align property with the sub value will achieve the same effect.
Version: HTML 3.2, 4, 4.01, 5
Standard Syntax
<sup>...<sup>
Browser Support
Status
Global Attributes
The <sup> element also supports the Global Attributes in HTML.
Event Attributes
The <sup> element also supports the Event Attributes in HTML.
By Default CSS Value(s)
Most of the browsers will display the <sup> element with the following by default value(s)
sup {
vertical-align: super;
font-size: smaller;
}