What is <sub> element in HTML?
In HTML, the <sub>element is used to display inline text as a subscript.
Subscripts are displayed half a character below the normal line and are typically rendered with smaller font size.
Syntax
<sub> subscript content </sub>
Code
The following code demonstrates the usage of the <sub> element in HTML.
The content which we want to be displayed as subscript is written within the opening and closing <sub> and </sub> tags.