Welcome to HTML5-Tutorials

Our site offers a lot of HTML5 learning from absolutely beginning to advanced level.If you want to make a website with HTML,this site will completely guide you a lot.So learn HTML5 syntax and form of coding easily with this website.If you have any doubt,leave a message on us.We will return you so soon.This site includes innumerable number of references you need to do after studying their corresponding elements.

In this page,we will learn about HTML <sup> tag.

Use of <sup> tag

The <sup> tag is used to define superscript texts.
Superscript texts are normally rendered with raised baseline and smaller texts like 3 in x3.

Display:Inline

Example of <sup> tag

x<sup> 3 </sup>

Supported Browsers.

Tag
<sup> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
If x = 10,x<sup>2</sup>=100.
</p>
</body>
</html>

Output

If x = 10,x2=100.

More Reference

The <sup> tag is mostly used in writing the exponent with respect to a base like x2.
It also uses in displaying ordinal number such as 1st,2nd,3rd,4th........,xn

Default CSS properties of <sup> tag

sup {
     font-size:smaller;
     vertical-align:super;Or vertical-align:20%;
}