Code and Output for sup:

Code:

    <!DOCTYPE html>
    <html>
    <head>
      <title>HTML Example</title>
    </head>
    <body>
      <h1>The sup element</h1>
     <p>This text contains <sup>superscript</sup> text. </p>
    </body>
    </html>
  

Output:

The sup element

This text contains superscript text.