Easy Tutorial
❮ Av Event Loadeddata Att Video Height ❯

HTML <sub> Tag

Example

Subscript text:


Browser Support

All major browsers support the <sub> tag.


Definition and Usage

The <sub> tag 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, such as H2O.

Tip: Use the <sup> tag to define superscript text.


Differences Between HTML 4.01 and HTML5

None.


Global Attributes

The <sub> tag supports the HTML global attributes.


Event Attributes

The <sub> tag supports the HTML event attributes.

❮ Av Event Loadeddata Att Video Height ❯