And if we had to write the formula for water in an article HTML… We would find ourselves in the need to know how to create a subscript in HTML.
The element HTML which is used to put subscripts is SUB. This element is made up of two tags. Its content will be the text that we want to put as a subscript.
subindex
In this way, to write the water symbol we would have the following HTML code:
H2O