sup – superscript
<sup>…</sup>
A superscript: an exponent (m2, 103), the number of a footnote reference or abbreviations written that way in a given language (French Mlle). The browser displays it in a smaller font and moves it above the baseline.
- Default display:
display: inline - End tag: required
- Content: phrasing content
- Where it can be used: anywhere phrasing content is allowed
- DOM interface:
HTMLElement
Attributes
Only global attributes.
Examples
A unit and a footnote reference:
<p>The bakery has 120 m<sup>2</sup> and we get our flour from a mill<sup><a href="#note-1">1</a></sup>.</p> <p id="note-1"><small>1) Weir Mill, Springfield.</small></p>
Things to watch out for
- Like
sub, it increases the line height –sup { line-height: 0; }helps. - A footnote number in
supis small and hard to tap on a phone. Make the link bigger (padding). - For m² there is also a separate character ² – it works just as well in text and does not enlarge the line.
Browser support
Baseline – widely available: works in all major browsers and has for a long time (since 2015 at the latest). Since version: Chrome 1, Firefox 1, Safari 4. As of October 2026 (MDN browser-compat-data).