html Sub Tag

In the html <sub> tag is used to identify subscript text. In the subscripts is frequently used for mathematical expressions and it appears from sentence half a character below baseline and it mostly we will use chemical formulas like this CH2O.

In the html <sub> tag attributes are classname,id, language_code, style_definition and xml:lang language_code.

Syntax:

<sub>
  ---
</sub>

Example Code

CH<sub>2</sub>O

Out Put:



CH2O

In the above example <sub> tag has been added to CH2O. it is a chemical formulas.





Content