HTML Superscript <sup>

Usage

The HTML superscript tag is used to display superscript in your text.

You can also check out the HTML Subscript tag.

Code:


<!DOCTYPE html>
<html>
<head>
<!-- This is the stylesheet John created in 2020 -->
<link rel="stylesheet" href="/file/stylesheet.css">
</head>

<body>

<div id="openingparagraphs">

<p>Welcome to my webpage and paragraph 1.</p>

<p>I have so much to say I'm going to need a lot of paragraphs!</p>

Superscript is useful for when you need to footnote<sup>1</sup>1 something
and it's also useful for math equations like x<sup>12</sup>1 + y<sup>12</sup>1.

</div>

</body>

</html>

Output:

Welcome to my webpage and paragraph 1.

I have so much to say I’m going to need a lot of paragraphs!

Superscript is useful for when you need to footnote1 something and it’s also useful for math equations like x2 + y2.