+ 3
Can someone tell the difference between subscript and superscript
4 Answers
+ 4
Sub is used to subscript the text below normal
And
Sup is used to subscript the text above normal
Hope it helps 💞💞💕💕🐯⛄
+ 2
CO<sub>2</sub>
H<sub>2</sub>O
Subscript tag is used to make the text inside sub tags appear below the normal line.Here 2 will appear below the normal line.
1024<sup>2</sup>
The superscript is opposite,making the text appear above the normal time.
Try this in code playground.
+ 2
In html we use subscript and superscript tag to display the value in power or on lower side of number.
Subscript displays value in lower side of another value.
Like in H2O ,2 will be in down of H.
Superscript displays value onupper side of another value.
Like in x²+y³=z⁴.Here 2,3 and 4 are in superscript.