HTML DOM Subscript Object






<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



HTML DOM Subscript Object



❮ Previous
Next ❯



Subscript Object


The Subscript object represents an HTML <sub> element.



Access a Subscript Object


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



Example



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

Try it Yourself »

Create a Subscript Object


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



Example



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

Try it Yourself »

Standard Properties and Events


The Subscript object supports the standard properties and events.




Related Pages


HTML tutorial: HTML Text Formatting Elements


HTML reference: HTML <sub> tag


JavaScript reference: HTML DOM Superscript Object





❮ Previous
Next ❯

Popular posts from this blog

Greedy Best First Search implementation in Rust

Function to Return a JSON Like Objects Using VBA Collections and Arrays

C++11 CLH Lock Implementation