Intro to HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Intro to HTML

What is the difference between <sub> and <sup> ?

16th Nov 2020, 7:51 PM
Beryl Mbanwi
Beryl Mbanwi - avatar
1 Answer
+ 2
The sub tag makes the text inside of it be subscripted (like the number of a specific atom in an molecule name, like O2, where the 2 should be subscripted) The sup tag is used for the same, but superscripted (like the exponent of a mathematical power)
16th Nov 2020, 8:02 PM
Martín Stanicio