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>
Code
The following is an example code which shows how to use the <sup> element in an HTML document.
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved