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>
<html>
	<head>
		<title> subscripted text example.. </title>
	</head>
	<body>
		<p>This is <sub> subscripted </sub> text</p>
	</body>
</html>

Output -

This is subscripted text.