HTML <sup> tag

Definition and usage

<sup> Label defines superscript text. Superscript text appears above the normal line at half a character position and is sometimes presented in a smaller font.

Superscript text can be used for footnotes, such as WWW[1].

Tip:Please use <sub> tag Define subscript text.

See Also:

HTML Tutorial:HTML Text Formatting

HTML DOM Reference Manual:Superscript Object

Example

Superscript Text:

<p>This text contains <sup>superscript</sup> text.</p>

Try It Yourself

Global Attributes

<sup> The tag also supports Global Attributes in HTML.

Event Attributes

<sup> The tag also supports Event Attributes in HTML.

Default CSS Settings

Most browsers will display the following default values <sup> Element:

sup {
  vertical-align: super;
  font-size: smaller;
}

Try It Yourself

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support