In HTML, the <sup> tag is applied to display text as superscript. Superscript is represented by a raised baseline and smaller text.


Example:

<!DOCTYPE html>
<html>
    <body>
        <p>a<sup>2</sup>+ b<sup>2</sup></p>
    </body>
</html>


output: