COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | SUPERSCRIPT
Superscript tag creates small letters above the text baseline.

SYNTAX

OPENING TAG CLOSING TAG
<sup> </sup>

Superscript Tag in HTML

<sup> Superscript description goes here ... </sup>

Example : superscript.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Superscript</title>
<body>

X<sup>2</sup><br/>
E = mc<sup>2</sup><br/>
January 1<sup>st</sup><br/>
(Hlop<sup>22</sup>)<br/>
a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup> <br/>
U+2103<sup>o</sup>C<br/>
U+2109<sup>o</sup>F<br/>
SUPER<sup>sript</sup><br/>

</body>
</html>

The output on the web broswer

Superscript