+ 3
what's the difference between subscripted and superscripted
formatting tags
3 odpowiedzi
+ 5
Sub would make the text inside the tags appears half a character below the normal line and is sometimes rendered in a smaller font.
Sup would make the text inside the tags appears half a character above the normal line, and is sometimes rendered in a smaller font.
Try it this way:
<!DOCTIPE html>
<html>
<head>
<title>Subscript and Superscript Text</title>
</head>
<body>
<p>This text contains <sub>subscript</sub> text.</p>
<p>This text contains <sup>superscript</sup> text.</p>
</body>
</html>
+ 1
here is the difference
<p> 2 <sup>2</sup></p> result is this → 2²
<p> co <sub>2</sub></p> result is this → co2
contact me if you need help my WhatsApp number
+22234542422