This <sup> element renders text in subscript format and in a smaller font than other text on the page.
<sup> |
Yes | Yes | Yes | Yes | Yes |
None.
The <sub> tag supports the Global Attributes in HTML.
The <sub> tag supports the Event Attributes in HTML.
sub { vertical-align: sub; font-size: smaller; }
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>