English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML: <sup> tag

HTML <sup> element defines a text area, for reasons of layout, it should be displayed higher and smaller than the main text. This tag is also commonly known as the <sup> element.

Online Example

<sup>Tags are usually used to specify indices, the following demonstration shows the use of sup in area units:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial(oldtoolbag.com)</title>/<title> 
</<head>
<body>
The area of the <p> box is36 M<sup>2</sup></p>
</body>
</html>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the <sup> tag.

Tag definition and usage instructions

The <sup> tag defines superscript text. Superscript text will be displayed above the baseline of the current text flow at half the height of the current text flow, but with the same font and size as the current text flow. Superscript text can be used to add footnotes, such as w3codebox[1].

Tip: Please use <sub> The tag defines subscript text.

Global Attributes

Support for <sup> tag HTML Global Attributes.

Event Attributes

Support for <sup> tag HTML Event Attributes.