We support #BlackLivesMatters !
If you support us then follow us by clicking here and following us!

What are Superscript and Subscript and how to use it in HTML?

For general web development questions using HTML and CSS.
Post Reply
admin
Site Admin
Posts: 44

What are Superscript and Subscript and how to use it in HTML?

Post by admin » Wed Oct 23, 2019 11:02 pm

To offset text either upward or downward you can use the tags <sup> and <sub> .
To create superscript:

Code: Select all

<sup>superscript here</sup>
To create subscript:

Code: Select all

<sub>subscript here</sub>

Post Reply