SUPERSCRIPT & SUBSCRIPT

 

Letters or numbers that are raised or lowered slightly relative to the main body text are called superscripts and subscripts. These come very useful when you are citing something, displaying a mathematical equation (a2+b2=c2), or a chemical equation (H20).

This is all very easily accomplished. First lets start with superscripts. Lets say we want to put the Pythagorean Theorem on our website (that's a2+b2=c2 if you don't know). So all we need to know is how we get those 2's up there. Well in order to make these we must enclose the 2's in the
<sup></sup> tags. Lets take a look at how this will look:
a<sup>2</sup>+b<sup>2</sup>=c<sup>2</sup>

Now how about creating a subscript? The subscript is as easy as the superscript, there is really only a one letter difference. In order to make anything a subscript we simply need to enclose it in the <sub></sub> tags. So H20 would be:
H<sub>2</sub>0

Hosted by www.Geocities.ws

1