How to Do Superscript HTML Codes

Superscript displays text half a character above other text on the same line. It's a handy way to show exponents on a Web page. HTML uses the <sup> tag for superscript. HTML standards require an opening and closing tag; if you leave the tag open, your entire line of text will appear as superscript and the code will fail if tested by an HTML validator, a code checker that ensures the code follows HTML rules.

Instructions

    • 1

      Open the HTML file you want to modify in a text editor, such as Notepad, WordPad or EditPad.

    • 2

      Place your cursor where you want the superscript to appear.

    • 3

      Put the text that should be in superscript between opening and closing <sup> tags as follows. Replace "superscript goes here" with your text.

      <sup>superscript goes here</sup>

Related Searches:

References

Comments

Related Ads

Featured