In this tutorial, you will see how to use
<sub> and <sup> tag. The <sub>
is used for defining subscript text. But 2 tag is used for superscript text in
your document.
| <sub>subscript text</sub> |
| <sup> superscript text</sup> |
|
<!doctype html > <html> <head><title>Insert title of document</title></head> <body> <h2>HTML5 <sub> and <sup> tag example.</h2> <p>Subscript</p> H<sub>2</sub>SO<sub>4</sub> <p>Superscript</p> Num<sup>2</sup>. </body> </html> |

None.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.