English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML <sup>-Element definiert einen Textbereich. Aus Gründen der Typografie sollte es höher und kleiner als der Haupttext dargestellt werden. Dieses Element wird auch als <sup>-Element bezeichnet.
Der Superscript-Tag wird normalerweise verwendet, um Exponenten zu kennzeichnen. Nachfolgend wird ein Beispiel gezeigt, wie sup im Flächenmaß verwendet wird:
<!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 ‹/›
IEFirefoxOperaChromeSafari
All mainstream browsers support the <sup> tag.
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 characters, but with the same font and size as the current text flow text. Superscript text can be used to add footnotes, such as w3codebox[1].
Tip: Please use <sub> The tag defines subscript text.
Support for <sup> Tag Global Attributes of HTML.
Support for <sup> Tag HTML Event Attributes.