Horje
How to create HTML <sub> Element

The HTML <sub> element defines subscript text. 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:


Example of HTML <sub> Element

<p>This is <sub>subscripted</sub> text.</p>

Full Example of HTML <sub> Element

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p>This is <sub>subscripted</sub> text.</p>

</body>
</html>

Output should be:

Full Example of HTML <sub> Element





Category:
Web Tutorial
Sub Category:
HTML Formatting
Uploaded by:
Admin


Read Article
https://horje.com/learn/1434/reference