DEV Community

Rajesh Kumar Yadav
Rajesh Kumar Yadav Subscriber

Posted on ā€¢ Edited on

2 2

HTML : Superscript and Subscript

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

To create superscript:

<sup>superscript here</sup>
Enter fullscreen mode Exit fullscreen mode

To create subscript:

<sub>subscript here</sub>
Enter fullscreen mode Exit fullscreen mode

Buy Me A Coffee

With all that being said, I highly recommend you keep learning!

Thank you for reading this article. Please feel free to connect with me on LinkedIn and Twitter.

Top comments (0)

šŸ‘‹ Kindness is contagious

Please leave a ā¤ļø or a friendly comment on this post if you found it helpful!

Okay