What is the use of <sub> and <sup>tag. Explain example with code.
Answers
Answered by
35
Explanation:
The <sub> tag defines the 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 to be written as H2O. Superscript: The <sup> tag is used to add a superscript text to the HTML document.
Answered by
39
Answer:
sub - used to write text at a lower level than regular Ex : SO<sub>4</sub>
sup - used to write text at a higher level than regular Ex: (a+b)<sup>2</sup>
Read my bio once
Similar questions