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.
<sup>superscript text</sup>
The <sup> element displays its content above the baseline.
Customize superscript appearance:
Combining superscript and subscript:
<!-- 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:
<span aria-label="E equals M C squared">
Make footnote references accessible:
For complex math, provide alternative descriptions:
<span aria-label="X squared plus Y squared equals Z squared">
x<sup>2</sup> + y<sup>2</sup> = z<sup>2</sup>
| Browser | Version | Notes |
|---|
| Chrome | 1+ | Full support |
| Firefox | 1+ | Full support |
| Safari | 1+ | Full support |
| Edge | 12+ | Full support |
| IE | 3+ | Full support |
The <sup> element has been supported since the earliest browsers.