Use of subscript /use of superscript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Use of subscript /use of superscript

someone explain to how this element function

26th Jun 2019, 4:20 PM
Tonny
Tonny - avatar
1 Answer
+ 2
Subscript text is created by using the <sub></sub> element in html, and will typically display the text that is in the sub element in a smaller font size, and below the baseline of the main text. Superscript <sup></sup> is the exact opposite, and is displayed in a smaller font, but this time above the heading line of the text. These are useful for denoting scientific measurements, temperate, chemical compounds, and various other data.
26th Jun 2019, 4:32 PM
Tony
Tony - avatar