WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <sub> Tag


Example

Subscript text:

<p>This text contains <sub>subscript</sub> text.</p>
Try it yourself »

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, like H2O.

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


Browser Support

Element
<sub> Yes Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

NONE.