superscript and subscript text


<sup><sub>

Browser
Internet Explorer Firefox Opera
Type
Inline

The SUP element defines superscript text, and the SUB element defines subscript text.


<sup>superscript text</sup>

<sub>subscript text</sub>


The text within these elements is displayed in a smaller font.

Tips and Notes

This can be specified with CSS. Please see the "Related Document" for details on CSS.


Example

<p>Normal text <sup>Superscript text</sup></p>

<p>Normal text <sub>Subscript text</sub></p>
Output

Normal text Superscript text

Normal text Subscript text