HTML » Tags » sub

Version: 3.2, 4.0

Compability: Explorer 4, 5  Netscape 4, 6

<sub> ... </sub>

The <sub> tag is used to insert subscript into a text. This allows the correct display of chemical equations, footnotes, math formulas, and scientific notation on a web page.

Most browsers reduce the text size by half for the subscript (and superscript), but use the same font face as used for the rest of the text. However, you can use style sheets and the style attribute to effect the appearance of the text to suit your desires.
The similar sup tag is used to create superscripts.
The closing tag is mandatory.


2H<sub style="color:red;">2</sub>+O<sub style="color:red;">2</sub>-> 2H<sub style="color:red;">2</sub>O
2H2+O2 -> 2H2O
Language(s): HTML

See Also: