Skip to content

12. sup Tag

The <sup> (superscript) element displays text above the normal baseline, making it smaller. It’s commonly used for mathematical exponents, footnotes, and ordinal indicators. The sup element has semantic meaning, indicating that the text should be rendered as superscript.

<p>E = mc<sup>2</sup></p>
<p>x<sup>2</sup> + y<sup>2</sup> = z<sup>2</sup></p>
<p>2<sup>10</sup> = 1024</p>
<p>1<sup>st</sup>, 2<sup>nd</sup>, 3<sup>rd</sup>, 4<sup>th</sup></p>
<p>This is text with a footnote<sup>1</sup>.</p>
<p><sup>1</sup>This is the footnote content.</p>