Skip to content

<sup> - The Superscript Element

Inline HTML 3.2

The superscript element represents inline text displayed as superscript, positioned above the normal line of text and often in a smaller font.

Result
<sup>superscript text</sup>

The <sup> element displays its content above the baseline.

Result
Result
Result
Result
Result
Result
Result
Result
Result
Result

Customize superscript appearance:

Result
Result

Combining superscript and subscript:

Result
Result
Result
<!-- Don't use sup just to raise text -->
<p>Look<sup>up</sup> here</p>
<!-- Don't use sup for symbols that have Unicode -->
<p>Trademark<sup>TM</sup></p>

Most screen readers don’t announce superscript positioning. Consider providing context:

<p>
<span aria-label="E equals M C squared">
E = mc<sup>2</sup>
</span>
</p>

Make footnote references accessible:

Result

For complex math, provide alternative descriptions:

<p>
<span aria-label="X squared plus Y squared equals Z squared">
x<sup>2</sup> + y<sup>2</sup> = z<sup>2</sup>
</span>
</p>
Result
BrowserVersionNotes
Chrome1+Full support
Firefox1+Full support
Safari1+Full support
Edge12+Full support
IE3+Full support

The <sup> element has been supported since the earliest browsers.