Summary -

In this topic, we described about the <sub> tag along with detailed example.

Subscript in HTML document. Subscripts text is used to display the text as subscripted text. Subscripts text uses <sub> tag.

Any text in between <sub>..</sub> displays as subscripted text. <sub> element is nested element.

Syntax -

<sub>.. text here.. </sub>

Example -

<!DOCTYPE html>
		<title> subscripted text example.. </title>
		<p>This is <sub> subscripted </sub> text</p>

Output -

This is subscripted text.