WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML

HTML DOM Superscript Object


Superscript Object

The Superscript object represents an HTML <sup> element.

Access a Superscript Object

You can access a <sup> element by using getElementById():

Create a Superscript Object

You can create a <sup> element by using the document.createElement() method:

var x = document.createElement("SUP");