CSS Portal

HTML <sup> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The <sup> element in HTML is used to define superscript text, which appears slightly above the normal line of text and is typically rendered in a smaller font size. Superscript text is commonly used in mathematical expressions, chemical formulas, footnotes, and trademarks to provide additional context without breaking the flow of the main content.

When applied, the content inside <sup> is visually raised relative to the surrounding text, making it ideal for notations like exponents (e.g., ), ordinal indicators (e.g., 1st, 2nd), or reference numbers for footnotes. For example:

<p>Water has the chemical formula H<sub>2</sub>O, and the boiling point is 100<sup>o</sup>C.</p>

Here, the <sup> tag raises the "o" in "°C" above the normal text line, giving it the conventional superscript appearance.

Semantically, <sup> indicates that the content is secondary or supplementary to the main text, rather than being merely styled for visual effect. This makes it meaningful for screen readers and accessibility tools, which can interpret superscript content appropriately.

By default, most browsers render <sup> text smaller and raised, but it can also be customized with CSS for precise positioning or styling, though this is rarely necessary for typical use cases.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

Christmas is on the 25<sup>th</sup> of December.

Attributes

None

Global Attributes

The <sup> tag also supports the Global Attributes in HTML5

Event Attributes

The <sup> tag also supports the Event Attributes in HTML5

Browser Support

The following information will show you the current browser support for the HTML <sup> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!