<sup><sub>

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

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.

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