What do the <sup> and <sub> element do? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What do the <sup> and <sub> element do?

16th Jul 2017, 1:13 AM
Hendrix Ejegi
Hendrix Ejegi - avatar
2 Antworten
0
<sub> is used in H20 where 2 is below H. <sup> is used in 10 to the power 5 where 4 is above 10. You can see this in work in below link http://w3schools.sinsixx.com/tags/tryit.asp@filename=tryhtml_sup.htm
16th Jul 2017, 6:25 AM
Syed Marwan Jamal
Syed Marwan Jamal - avatar
+ 1
The <sub> tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O. The <sup> tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW
16th Jul 2017, 3:33 AM
Brent Mason
Brent Mason - avatar