<sub> tag in HTML
The <sub> tag is used to defines subscript text, and subscript text appears lower and usually smaller, than the around text.
Important Description
- Open and close tag required of <sub>.
- The <sub> element use for chemical formulas like NH3, etc.
Example of <sub> tag
Result Look Like
This is the example of the subscript text.
<sub> Tag Browser Support
All browsers are supported <sub> tag with all versions:
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<sub> |
Yes |
Yes |
Yes |
Yes |
Yes |
Global Attributes
Event Attributes