sup Tag for Superscript

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 The sup Tag for Superscript

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

Back to Tutorial

tt tag for Monospace
sub Tag for Subscript

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?