12. sup Tag
Introduction
Section titled “Introduction”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.
Basic Usage
Section titled “Basic Usage”<p>E = mc<sup>2</sup></p>Common Use Cases
Section titled “Common Use Cases”Mathematical Exponents
Section titled “Mathematical Exponents”<p>x<sup>2</sup> + y<sup>2</sup> = z<sup>2</sup></p><p>2<sup>10</sup> = 1024</p>Ordinal Numbers
Section titled “Ordinal Numbers”<p>1<sup>st</sup>, 2<sup>nd</sup>, 3<sup>rd</sup>, 4<sup>th</sup></p>Footnotes
Section titled “Footnotes”<p>This is text with a footnote<sup>1</sup>.</p><p><sup>1</sup>This is the footnote content.</p>