How do <sub> and <super> operate exactly? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How do <sub> and <super> operate exactly?

I mean I know, they're styling for font, but like how does the machine know which letter or number to subscript or superscript? Like in H2O.. I've also tried on Decoder(android) the text stayed the same? Nothing went up or down, am I doing anything wrong or.. just curious I think it's important to understand everything even little lol..

18th Aug 2019, 3:34 AM
NakedAvocado
NakedAvocado - avatar
4 Antworten
+ 2
It's for subscript and superscript you can try writing H<sub>2</sub>O
18th Aug 2019, 5:28 AM
Rishab Sharma
Rishab Sharma - avatar
+ 2
https://code.sololearn.com/W5JoY7ZE6ryY/?ref=app
18th Aug 2019, 6:12 AM
Bug Slayer
+ 1
It wasn't written like that in the lesson of html formats, that's why I asked! it seems logical.. why didn't I think of it that way? The something we want to "sub""sup" should be in-between to take effect! Thank you:)
18th Aug 2019, 5:57 AM
NakedAvocado
NakedAvocado - avatar