Distinguishes between <sup> and <sub> tags are as follows:
<sup> Tag |
<sub> Tag |
The <sup> tag is known as superscript tag. |
The <sub> tag is known as subscript tag. |
It is used to define superscripted text. |
It is used to define subscripted text. |
Tags that are used to specify superscripted written as <sup> text </sup> |
Tags that are used to specify subscripted written as <sub> text </sub> |
e.g. HTML command to display (a+ b)2 is (a+ b) <sup>2</sup> |
e.g. HTML command to display log2+log x is log <sub>2</sub>+log <sub>x</sub> |