HTML <sup> tag

The <sup> tag is used to make text appear superscripted. Superscripted text will appear half a character above regular text.

Standard attributes

class, dir, id, lang, style, title, xml:lang

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress, onkeyup

For more information on event attributes, check out our HTML event attributes reference page.

Example

25<sup>2</sup> = 625 You can find our awesome photo studio on 59<sup>th</sup> street and 2<sup>nd</sup> avenue.
Output:
252 = 625 You can find our awesome photo studio on 59th street and 2nd avenue.

Tips & notes

Don't use the <sup> tag simply to make some text appear superscripted because it looks cool. Use it according to language rules when it's actually necessary to make text appear superscripted like in the above example.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation