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





Related Articles
What is HTML Text Formatting HTML Formatting
What is HTML Formatting Elements HTML Formatting
How to create HTML <b> and <strong> Elements HTML Formatting
How to create HTML <strong> Elements HTML Formatting
How to create HTML <i> Elements HTML Formatting
How to create HTML <em> Elements HTML Formatting
How to create HTML <small> Element HTML Formatting
How to create HTML <mark> Element HTML Formatting
How to create HTML <del> Element HTML Formatting
How to create HTML <ins> Element HTML Formatting
How to create HTML <sub> Element HTML Formatting
How to create HTML <sup> Element HTML Formatting

Single Articles
Example of HTML <sub> ElementHTML Formatting
Full Example of HTML <sub> ElementHTML Formatting

Read Full:
HTML Formatting
Category:
Web Tutorial
Sub Category:
HTML Formatting
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
74


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_formatting_sub

Share on: