hi @Dij_L you are misunderstand what is and how content of websites works. I will recommend to invest some time to learn what is HTML and CSS and how these technologies differ from standard software for writing text (text editors).
Anyway back to you question if you browse internet with keywords html superscript
or how to superscript website
you will find many great sources that will reveal secret weapon of <sup>
.
Here is one that may answer your question.
if you will write more complex math formula on website there are libraries that can may help you.
but feel free to fine one that will fulfil your expectations
because HTML is not text editor software