30/09/2014

HTML Subscript

For a subscript i will use the <sub> tag, let's begin:
Input
<p>This is a <sub>subscript text </sub>
Output
This is a subscript text
Subscript Practical applications
The subscript tag, same as the superscript tag can be used at writing the mathematical expressions. Still, the place where we most find it are the chemical formulas.
Input
<p>H<sub>2</sub> 0 : Water
<p>O<sub>2</sub> : Oxygen
<p>CO<sub>2</sub> : Carbon dioxide
<p>H<sub></sub>SO<sub>4</sub> : Sulfuric acid
Output
H20 : Water
O2 : Oxygen
CO2 : Carbon dioxide
H2SO4 : Sulfuric acid
As you can see in the example presented above its use is very practical.