HTML <sup> tag

Updated: 10/11/2017 by Computer Hope

HTML sup tagWhen writing in HTML, the <sup> tag is an inline element used to designate superscript text, which appears higher, and usually smaller, than the text around it. It is useful for tasks like writing mathematical formulas and footnotes. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Tip: For subscript text, use the <sub> tag.

Example code

<p>Here is how <sup>superscripted</sup> text looks.</p>

Example result

Here is how superscripted text looks.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <sup> tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
All versions All versions All versions All versions All versions

Browser, Compatibility, Footnote, Web design terms