Easy Tutorial
❮ Jsref Isnan Prop Video Seekable ❯

JavaScript sup() Method


Definition and Usage

The sup() method is used to display a string as superscript.

This method returns the string with the <sup> tag added, like this:

<sup>string</sup>

Syntax


Browser Support

All major browsers support the sup() method.


Example

Display the text string as superscript:


❮ Jsref Isnan Prop Video Seekable ❯