HTML Tag Reference - HTML tag <sup>








This <sup> element renders text in subscript format and in a smaller font than other text on the page.

Browser compatibility

<sup> Yes Yes Yes Yes Yes

What's new in HTML5

None.

Global Attributes

The <sub> tag supports the Global Attributes in HTML.

Event Attributes

The <sub> tag supports the Event Attributes in HTML.

Default CSS Settings

sub { 
    vertical-align: sub;
    font-size: smaller;
}





Example

A demo showing how to use <sub> tag.

<html>
<body>
     <p>
          H<sub>2</sub>O is the chemical formula for regular water.
     </p>
</body>
</html>

Click to view the demo