HTML Sup Tutorial

G:hackHTMLmyHTML-Tutorial14- sup�1.png
<sup> element stands for superscript and we use it to add a text above a content (number/ letter/ word/ sentence/ paragraph etc.)

Example:

<!DOCTYPE html>
<html>
<title> Learning HTML is fun 🙂 </title>
<head>
</head>
<body >
<p> 4<sup>2</sup> equals 16</p>
<hr>
</body>
</html>

Another example:

<!DOCTYPE html>
<html>
<title> Learning HTML is fun 🙂 </title>
<head>
</head>
<body >
<p> this is for test<sup>superscript</sup></p>
<hr>
</body>
</html>

In the next section we will explain what <sub> is and how we can use it.