Computer Science, asked by kashikakharbanda3, 11 months ago

write the html code to show subcript and superscript tag​

Answers

Answered by Zisha7
4

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.

Answered by RISH4BH
334

\underline{\textsf{\textbf{\purple{$\mapsto$HTML\:code\:to\:show\: superscript:}}}}

For displaying numbers , letters , etc in superscript we use <SUP> ..</SUP> command .

\underline{\tt{\red{\leadsto Code:-}}}

<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 ]

\rule{200}2

\underline{\textsf{\textbf{\purple{$\mapsto$HTML\:code\:to\:show\: subscript:}}}}

For displaying numbers , letters , etc in subscript we use <SUB> ..</SUB> command .

\underline{\tt{\red{\leadsto Code:-}}}

<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 ]

Attachments:
Similar questions