A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, while superscripts are above. Subscripts and superscripts are perhaps most often used in formulas, mathematical expressions, and specifications of chemical compounds and isotopes, but have many other uses as well. [From Wikipedia] Or you can use it for some other purpose.
So here we can see how can we do this on a webpage using HTML.
There is a tag available in HTML for superscript and subscript.
For superscript, it is <sup>text</sup>
And for subscript, it is <sub>text</sub>
Here is an example-
Superscript-
Arvind <sup>Kumar</sup>
Output-
Subscript-
Arvind<sub>Kumar</sub>
output-