Superscript is used for exponents in math and footnotes. Examples:
Subscript is used in chemical formulas, for example:
Although the above examples look good, they would look better if the subscript (SUB) and superscript (SUP) numbers were a bit smaller. You can make numbers smaller by applying FONT tags with the size=-1 attribute and value and then nesting the font tags inside or outside the SUB or SUP tags.
Here are the same three examples from above using this technique:
Below is an example of the Pythagorean theorem which you may have encountered in trigonometry. FYI, it states that when there is a right triangle (one of the corners having a 90° angle) the square of the length of the hypotenuse (c), which is the side opposite the right angle, is equal to the sums of the squares of the lengths of the other two sides.
The problem with the formatting of the formula is that the "2" numbers need to be made into exponents, such as you see above in the example at the top of the page (which states that 2 to the eighth power equals 256). The number 2 in each part of the formula at bottom needs to be made into superscript and size -1 so that each "2" appears above the baseline of the letters and a little smaller. Here are the specific instructions:
c2 = a2 + b2
Thanks.
© 2012 Dan Vaughan and its licensors. All rights reserved.