sup Tag for Superscript
Text between the opening tag <sup> and the closing tag </sup> is shown half a character’s height above the other characters and slightly smaller than the surrounding text as shown
HTML code <p> There is extra gap below.</p> <p>Today is 31<sup>st</sup></p> <p> This is a paragraph.</p> <p> This is a paragraph.</p> <p>(x<sup>2</sup>+ 1)</p> | Browser output |
It is used to display exponential values and showing the st, nd, rd and th to dates but creates a gap between the line with the superscript text and the line above it.
Apply for HTML5 Certification Now!!
http://www.vskills.in/certification/Certified-HTML5-Developer