<sub>

Description

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

Example


<html>
<body>
     <p>
          H<sub>2</sub>O is the chemical formula for regular water.
     </p><!--from w w  w . j a v  a 2s .c o  m-->
</body>
</html>

Click to view the demo

The code above generates the following result.

sub




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference