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>
		<title> Superscripted text example.. </title>
		<p>This is <sup> Superscripted </sup> text</p>

Output -

This is Superscripted text.