HTML superscript - how to use <sub> tag

The HTML <sub> tag is used to define superscript text. The superscript text usually appears in smaller font and the text appears above the normal line.

Attributes

The superscript tag supports the global and event attributes.

Examples:

<p><strong>HTML5</strong> is the building <sup>block</sup> of webpages.</p>

Related HTML tags:

  • <sup> - used to define superscript