HTML
1
2
<html>
3
<head>
4
<title>Superscript </title>
5
</head>
6
<body>
7
<h1>We are using superscript</h1>
8
<p>Below is a mathematical equation using superscript </p>
9
(a+b)<sup>2</sup> = a<sup>2</sup> + 2ab + b<sup>2</sup>
10
11
<p>
12
First = 1<sup>st</sup>, Second = 2<sup>nd</sup>, Third = 3<sup>rd</sup>
13
</p>
14
</body>
15
</html>
CSS
โx
1
โ
JavaScript
1
1
โ
Output: