COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | SUBSCRIPT
Subscript tag creates small letters bellow the text baseline.

SYNTAX

OPENING TAG CLOSING TAG
<sub> </sub>

Subscript Tag in HTML

<sub> Subscript description goes here ... </sub>

Example : subscript.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Subscript</title>
<body>

X<sub>2</sub><br/>
NH<sub>3</sub><br/>
H<sub>2</sub>0<br/>
0<sub>2</sub><br/>
C0<sub>2</sub><br/>
(Hlop<sub>22</sub>)<br/>
C<sub>12</sub> H<sub>22</sub> O<sub>11</sub> <br/>
SUB<sub>sript</sub><br/>

</body>
</html>

The output on the web broswer

Subscript