Latest web development tutorials

HTML <sup> tag

Examples

Superscript text:

<p>这个文本包含 <sup>上标</sup> 文本。</p>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support <sup> tag.


Tag definitions and instructions

<Sup> tag defines superscript text. Superscript text will display character height above the baseline of the half in the current text flow, but with the current text flow of text fonts and sizes are the same. Superscript text can be used to add footnotes, such as WWW [1].

Tip: Use <sub> tag defines subscript text.


Differences between HTML 4.01 and HTML5

no.


Global Properties

<sup> tag supports HTML global properties .


Event Properties

<sup> tag supports HTML event properties .