HTML: Applying superscript formatting

This entry is part 5 of 34 in the series HTML

Superscript formatting makes text smaller and raises it off the baseline.

We have typically used superscript to format exponents in math equations such as x2 +1.

<!DOCTYPE html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>Superscript Formatting</title>

<H3>Pub Happy Hours: 5pm to 9pm<sup>1</sup></H3>
<p><sup>1</sup>Closed on Monday.</p>


As you can see in the example, superscript is formatted by using <sup> tag.

Series Navigation<< HTML: Images
HTML: Subscript formatting >>

Leave a comment

Leave a Reply