1.

Explain subscript and superscript?

Answer»

Subscript:

A Subscript is a way to display a character or a number below the normal line of type. For example: The scientific notation for water is H2O. It should be written as H2O.
Here, 2 is appearing below the normal line. This is called subscript.

Superscript:

A Superscript is also a way to show a character or a number above the normal line of type. For example: The familiar algebra equation “a plus b the whole square” should be written as (a+b)2. Here, the square value 2 is appearing above the normal line. This is called superscript. Usually, the subscript and the superscript character or number is smaller than the rest of the text.

In HTML, the <sub> and <sup> tags are used to create subscript and superscripts respectively. As like as other formatting tags, this is also a container tag.



Discussion

No Comment Found