HTML sup Tag

HTML <sup>Tag: The HTML<sup> tag defines the superscript text. For adding a superscript text in an HTML file, a tag can be used. The sup tag defines superscript text. Superscript text appears half a character above the normal line and is sometimes rendered in a smaller font. Superscript text can be used for footnotes. And this tag is mostly used in the Formulae.

HTML <sup>Tag

This HTML sup tag supports both the global and the event attributes. Superscript texts are placed on the top of the Normal Line.

Syntax: <sup> Text </sup>

Browser compatibility

The HTML sup tag is supported by different types of browsers.

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer

Example:

<!DOCTYPE html>
<html>
<body>
<p>This text contains <sub>subscript</sub> text.</p>
</body>
</html>

Output:

HTML sup tag