Can anyone please let me know the specific purpose of SUB and SUP in HTML
Can anyone please let me know the specific purpose of SUB and SUP in HTML
Try to visist w3school.com
Can you give me an example of where these tags would be used?
Caleb
The use of subscript tag <sub> is use for chemical compound in Chemistry while superscript tag <sup> is user for exponent power.
SeoKungFu (02-26-2010)
Check out this tutorial:
HTML SUB, SUP - HTML Code Tutorial
The <sub> tag defines subscript text and 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 and the superscript text appears half a character above the baseline. Superscript text can be used for footnotes, like WWW.
Note:
Based to W3C, whether SUB and SUP are intended to be used for stylistic presentation only. And if they are, it should be explicitly stated that they should not be used for exponents in mathematical expressions or in other contexts where it might change the meaning of a piece of text if SUB and SUP elements were presented as normal text.
There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks