write the html code to show subcript and superscript tag
Answers
Answer:
The <sup> tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW. Tip: Use the <sub> tag to define subscript text.
For displaying numbers , letters , etc in superscript we use <SUP> ..</SUP> command .
<HTML>
<HEAD>
<TITLE>
Superscript
</TITLE>
</HEAD>
<BODY>
<!-- SUPERSCRIPT-->
(a + b )<SUP>2</SUP> = a<SUP>2</SUP> + b<SUP>2
</SUP>+2ab
</BODY>
</HTML>
[ For its result refer to the first attachment ]
For displaying numbers , letters , etc in subscript we use <SUB> ..</SUB> command .
<HTML>
<HEAD>
<TITLE>
Subscript
</TITLE>
</HEAD>
<BODY>
<!-- SUBSCRIPT-->
CuSO<SUB>4</SUB>+Fe= FeSO<SUB>4</SUB>+Cu
</BODY>
</HTML>
[ For its result refer to the second attachment ]