How to Type Superscript in HTML

How to Type Superscript in HTML thumbnail
Exponents can be displayed as superscripts.

Superscripts can be added in HTML to help you display mathematical formulas, exponents and chemical equations on your Web page. Superscript characters use the same font as nearby text but appear smaller in size and are positioned to the upper right of the text. You can add superscript characters with the "<sup>" tag, which makes the text appear half a character above the baseline.

Instructions

    • 1

      Open the HTML file in a text editor, such as Windows Notepad.

    • 2

      Start a superscript section by adding the tag "<sup>."

    • 3

      Add the text you want to be superscripted, such as "text here."

    • 4

      Close the superscript section by adding the tag "</sup>." For example, "5<sup>2</sup> = 25." The superscript appears as a mathematical exponent.

    • 5

      Save the HTML file and load it on your server to view the superscript.

Related Searches:

References

  • Photo Credit Comstock/Comstock/Getty Images

Comments

Related Ads

Featured