Check out example codes for "how to write superscript in html". It will help you in understanding the concepts better.

Code Example 1

<sup>this text is in superscribt</sup>

Code Example 2

<sub> This is in subscript</sub>

Learn ReactJs, React Native from akashmittal.com