Definition and Usage.
The <sub> tag defines subscript text. Subscript text appears half a character below the baseline. Subscript text can be used for chemical formulas, like H2O.
The <sup> tag defines superscript text. Superscript text appears half a character above the baseline. Superscript text can be used for footnotes, like WWW[1].
Example of sub.
<html>
<body>
<p>This text contains
<sub>subscript</sub> text.
</p>
</body>
</html>
Output.
This text contains subscript text.
Example of sup.
<html>
<body>
<p>This text contains
<sup>subscript</sup> text.
</p>
</body>
</html>
Output.
This text contains superscript text.
No response to “Use of sub and sup tags.”
Post a Comment