Search this site!

Return to the CSB Support home page
Open up your CD drive!   |   Page Counters   |   Convert WORD document   |   Download Counter   |   Form Mailer1   |   Form Mailer2   |   Display special characters   |   Display subscript & superscripts   |   Random Password Generator   |   Progress Bar Generator
Display subscript & superscripts
Description:
Have you ever need to display subscripts or superscripts, as in a mathematical or chemical equation?  Things like:

Water is H2O.
-or-
Einstein wrote that: e=mc2

How to use:
To do subscripts, you use the <sub> and </sub> HTML tag pair, and for superscripts you use the <sup> and </sup> tags.  

Simply place the equation on your page using Insert > HTML Code.

So for the water example, here is the code I entered:
Water is H<sub>2</sub>O.

And for the Einstein example, I entered:
Einstein wrote that: e=mc<sup>2</sup>

Example:
One more example:

The chemical formula for Glacial Acetic Acid is C2H4O2

was created by inserting the following into an Insert > HTML Code function:

The chemical formula for Glacial Acetic Acid is C<SUB>2</SUB>H<SUB>4</SUB>O<SUB>2</SUB>

Download the code
right click on link, then click on 'Save target (or frame) as'
Other information:
Bill Kratz, a CSB user, also posted the following link that provides further information into displaying mathematical formulas on a web site:


Let's test creating a link from text that contains a sub or super script:

KW's© Home Page

Source code: