What is a subscripted and superscripted text? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

What is a subscripted and superscripted text?

20th Dec 2016, 7:54 PM
Roheeet Tamboli
Roheeet Tamboli - avatar
6 Antworten
+ 16
The <sup> tag defines superscript text. Superscript text appears a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like ABC[1]. the <sub> tag is used to define subscript text.
26th Dec 2016, 2:10 PM
soumya
soumya - avatar
+ 8
Test this on code playground <p>A<sup>sup</sup></p> <p>A<sub>sub</sub></p>
20th Dec 2016, 7:57 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
think subscript is leg part of content and super script is head of content
23rd Dec 2016, 12:29 PM
Ashusen Tamang (अशुसेन)
Ashusen Tamang (अशुसेन) - avatar
+ 4
A subscript or superscript is a number, figure, symbol, or indicator that is smaller than their normal line of type and is set slightly below or above it. Subscripts appear at or below the baseline, while superscripts are above.
20th Dec 2016, 8:32 PM
Aditi Patel
+ 4
if you want to write X power 2 or n (X^2) if you want to write O2 (Oxygen )
20th Dec 2016, 9:02 PM
Ahmed Sheta
Ahmed Sheta - avatar
+ 4
Subscript is a number or letter slightly below the regular text line (like the 2 in H20). Super script is the raised number (or text) like the 2 squared = 25. See my code examples here: https://code.sololearn.com/W896QLEgkajj/#html Hit run to see how they look!
22nd Dec 2016, 11:16 AM
html ninja