Check out example codes for "html indice". It will help you in understanding the concepts better.

Code Example 1

<sup></sup>
<sub></sub>

Learn ReactJs, React Native from akashmittal.com