Loading...
HTML <sup> Tag

HTML <sup> Tag

In this tutorial, we will learn about sup tag in HTML with the help of examples.


<sup> Tag

Sup tag <sup> is used for defining superscript text(text appears above the normal line in smaller font size).

Syntax

<sup>..........</sup>

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Sub Tag</title>
  </head>
  <body>
      <p>10<sup>2</sup> = 100</p>
  </body>
</html>

Output

102 = 100


Global Attribute

Sup Tag support all the global attributes of HTML.


Event Attribute

Sup Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of <sup> tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML <svg> Tag.

- Related Topics