HTML <sub> (Subscript) Tag
Example
<p>This is <sub>subscript</sub> text</p>
Meaning
The <sub> element renders its content as subscripted text.
The <sub> tag should be used for typographical reasons only.
Notes:
- The CSS property vertical-align can be used to simulate this element.
- This tag must not be used for styling purpose like changing the vertical position of the text. In that case CSS should be used instead: the vertical-align property with the sub value will achieve the same effect.
Version: HTML 3.2, 4, 4.01, 5
Standard Syntax
<sub>...</sub>
Browser Support
Status
Global Attributes
The <sub> element also supports the Global Attributes in HTML.
Event Attributes
The <sub> element also supports the Event Attributes in HTML.
By Default CSS Value(s)
Most of the browsers will display the <sub> element with the following by default value(s)
sub {
vertical-align: sub;
font-size: smaller;
}