What is <sup> tag?

Experience Level: Junior
Tags: HTML

Answer

The <sup> tag is inline element which you need text to appear higher then the main spread of text.

Example
<html>
<head>...</head>
<body>
    <p>
        E=mc<sup>2</sup>
    </p>
</body>
</html>
Related HTML job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.