Subscript in HTML

In HTML <sub> element tags defines Subscripted texts.Subscript text appears half a character below the normal line and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O, H2SO4.

Input:-

<html>
<body>
<p>This is normal text</p>
<p>This is<sub> subscripted</sub>text </p>
</body>
</html>

Output:-

This is normal text.

This is subscripted text.

HOME/BACK

Comments

Popular posts from this blog

Keywords in C Programming

Definition of C Language

Data Types in C Programming