HTML Subscript Tag <sub> is used to define subscript text in HTML.
A Subscript text appears to be half a character below the normal character base.
HTML Subscript Tag <sub> is used to write chemical formulas e.g. O2, H2O etc.
HTML Subscript Tag is a closed tag and hence needs to be closed using the closing Subscript HTML Tag </sub>.
Syntax of HTML Subscript Tag
<sub> Some formula here.. </sub>
Example of HTML Subscript Tag
HTML Subscript Tag Code | Output | ||
|
The Chemical formula of Water is:H2O |
Here in the HTML Subscript tag example above we can see that the “2” in
H2O comes as a Subscript and that’s the use of Subscript HTML tag.
HTML Subscript Tag Supports all HTML Global Attributes and HTML Event Attributes.
HTML Subscript Tag Supporting Browsers
S. No. | Browser | Supported(Yes/No) |
1 | Internet Explorer | Yes |
2 | Firefox | Yes |
3 | Google Chrome | Yes |
4 | Opera | Yes |
5 | Safari | Yes |