Summary -
In this topic, we described about the <sup> tag along with detailed example.
Superscript in the HTML document. Superscripts text is used to display the text as Superscripted text. Superscripts text uses <sup> tag.
Any text in between <sup>..</sup> displays as Superscripted text. <sup> element is nested element. Subscripts and superscripts are mostly used in mathematical expressions.
Syntax -
<sup>.. text here.. </sup>
Example -
<!DOCTYPE html>
<html>
<head>
<title> Superscripted text example.. </title>
</head>
<body>
<p>This is <sup> Superscripted </sup> text</p>
</body>
</html>
Output -
This is Superscripted text.