HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The Superscript object represents an HTML <sup> element
The Superscript object represents an HTML <sup> element.
Access a Superscript Object
You can access a <sup> element by using getElementById():
var x = document.getElementById("mySup");
Create a Superscript Object
You can create a <sup> element by using the document.createElement() method:
var x = document.createElement("SUP");
The Superscript object supports the standard properties and events.
HTML tutorial: HTML Text Formatting Elements
HTML reference: HTML <sup> tag
JavaScript reference: HTML DOM Subscript Object