<sup> ... </sup>
Available in versions: 3.2, 4.0
The <sup> tag is used to insert superscript into a text.
This allows the correct display of footnotes, math formulas, and scientific notation on a web page.
Most browsers reduce the text size by half for the superscript, but use the same font face
as used for the rest of the text.
However, you can use style sheets and the style attribute to effect the
appearance of the text to suit your desires.
The similar sub tag is used to create subscripts.
The closing tag is mandatory.
Core Attributes
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
Attributes
None.
Code:
E = MC<sup>2</sup>
Output:
E = MC2
Copyright 2000 by Infinite Software
Solutions, Inc.
Trademark Information
|