sub and sup Element
Description
You use the sub
and sup
elements
to denote subscripts and superscripts, respectively.
Superscripts are required in some languages and both superscripts and subscripts are used in simple mathematical expressions.
Example
The following code shows the sub
and sup
elements in use.
<!DOCTYPE HTML>
<html>
<body>
The point x<sub>10</sub> is the 10<sup>th</sup> point.
</body><!-- www . jav a 2s. c om-->
</html>