HTML SUP Tag || Sup Tag in HTML
×

HTML SUP <sup> Tag

2205

The HTML SUP <sup> tag define superscript text in an HTML document. Superscript text appears half a character above the normal line and it is sometimes rendered in a smaller font.

Superscript text can be used for footnotes, like WWW[1], mathematical expressions, physical formulas and languages such as French as a convention to represent some abbreviations.

Syntax:

The <sup> tag is written as <sup></sup> with the subscript text inserted between the start and end tags.

Program:

<!DOCTYPE html>
<html> 
<head>
<title>HTML Sup Tag</title>
<style>
 p{
  color: green;
  font-size: 26px;
  font-weight: 500;
  text-transform:capitalize;
  }
</style>
</head>
<body>
<h2>Example of Sup Tag</h2>
<p>Mass Energy: <b>E = mc<sup>2</sup></b></p>
</html>

Output:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments