HTML Tutorial

HTML Tag: <sup>

Usage:

The <sup> tag is used to create superscripted text, which is smaller and appears slightly raised above the baseline of the surrounding text.

Attributes:

  • value: Accepts a value representing the exponent or vertical shift.

Examples:

  • Superscripted Text: `10
  • Vertical Shift: 3SHIFT+3`

Simple HTML Example: Exploring the <sup> Tag

<h1>Exploring the <sup> Tag</sup></h1>

<p>
  <sup>2</sup> indicates squared, while <sup>3</sup> indicates cubed.
  <br>
  SHIFT+3 is raised using <code><sup>3</sup>SHIFT+3</code>.
</p>

Output:

Exploring the <sup> Tag</sup>

2 indicates squared, while 3 indicates cubed.
SHIFT+3 is raised using <sup>3</sup>SHIFT+3.