DEV Community

loading...

HTML : Superscript and Subscript

rajeshkumaryadavdotcom profile image RajeshKumarYadav.com Updated on ・1 min read

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.

Discussion (0)

Forem Open with the Forem app