What is the <sup> element in HTML?

We use the <sup> element with inline text to display content as a superscript.

Superscript indicates that the content added between the <sup> and </sup> tags is a smaller font size and placed slightly above the normal text.

Syntax

We write tags in HTML inside the < and > signs. The syntax is as follows:

<sup> superscript content </sup>
superscript text and <sup> tag.

Code

The following is an example code which shows how to use the <sup> element in an HTML document.

The <sup> element

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved