Home

How to write superscript in html

Insert subscript or superscript text. Superscript and subscript refer to numbers that are positioned slightly higher or slightly lower than the text on the line.

For example, chemical formulas use subscript (H 2 O), and an exponent is often formatted as a superscript (X 4). Make text subscript or superscript. How can the answer be improved? Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW [1. Tip: Use the tag to define subscript text. The HTML Superscript element () specifies inline text which is to be displayed as superscript for solely typographical reasons.

Superscripts are usually rendered with a raised baseline using smaller text. Save Your Code. If you click the save button, your code will be saved, and you get an URL you can share with others.