HTML Superscript (HTML Formatting Tags part 5)

১১/১৮/২০১১ ০৯:০৪:০০ AM | | 0 comments »

Superscripted text can be placed onto your website using the <sup> tag. You may id these tags for use with Cascading Style Sheets.

HTML Code:

<p>This text is <sup>superscripted!</sup></p>

Superscript:

This text is superscripted!

HTML - Exponents

We may use the superscripting technique to express exponential expressions.

HTML Code:

2<sup>3</sup> = 8
14<sup>x</sup>

Exponents:

23 = 8
14x

HTML - Footnotes

You may have come across several texts where a referencing, superscripting directs your attention to the bottom of the page. These footnotes can also be created with the superscript tag.

HTML Code:

<p>"It was a lover's tryst<sup>1</sup>."
<hr />
1. Secret meeting between lovers

Footnotes:

"It was a lover's tryst1."

1. Secret meeting between lovers