How to use Sub and Sup in html


sup: 
SUP element is used to define superscript text. Superscript text is shown in the half character above the normal line. They are also called small font. Superscript text is used to write footnotes.

ex




output




sub: Sub Element is used to define subscript text. The subscript text shows a Normal text in the Half character below the normal line. This element is used to write chemical formulas such as H20. 

ex:-



output