विश्व का सबसे बड़ा हिंदी वेब डेवलपर साइट
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Subscript Object


Subscript Object

The Subscript object represents an HTML <sub> element.

Access a Subscript Object

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

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

Create a Subscript Object

You can create a <sub> element by using the document.create