To lower text in HTML we can use the HTML subscript tag <sub></sub>
.
<sub>text</sub>
Let’s say I have the following HTML:
<div id="div1">The chemical formula for water is H2O</div>
If we want to lower the “2” in H2O, we can do this using the HTML subscript tag <sub></sub>
.
<div id="div1">The chemical formula for water is H<sub>2</sub>O</div>
This would result in the following code:
The chemical formula for water is H2O
Leave a Reply