What is the use of <sub> and <sup> tags | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

What is the use of <sub> and <sup> tags

In html the output of:- small text, subscripted & superscripted all looking same then why we use <sub> and <sup> ??

19th Jun 2017, 12:37 PM
Himanshu Singh
Himanshu Singh - avatar
1 ответ
+ 1
1. Html <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. 2. Html <sup> is used for superscript text like it represents 2 cubed and 4 square in mathematics
19th Jun 2017, 1:02 PM
Praveen kumar Kuppam
Praveen kumar Kuppam - avatar