WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Subscript Object


Subscript Object

The Subscript article speaks to a HTML <sub> element.

Access a Subscript Object

You can get to a <sub> component by utilizing getElementById():

var x = document.getElementById("mySub");

Create a Subscript Object

You can make a <sub> component by utilizing the document.createElement() method:

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