HTML SUP Tag || Sup Tag in HTML
×

HTML SUP <sup> Tag

0 565

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:




Share:


Leave a Reply


Comments
    Waiting for your comments