Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

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: 45

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