HTML DOM DT Object

DT Object The DT object represents an HTML <dt> element. Access a DT Object You can access a <dt> element by using getElementById(): Example var x = document.getElementById(“myDT”); Try it Yourself » Create a DT Object You can create a <dt> element by using the document.createElement() method: Example var x = document.createElement(“DT”); Try it Yourself » Standard […]

HTML DOM DList Object

DList Object The DList object represents an HTML <dl> element. Access a DList Object You can access a <dl> element by using getElementById(): Example var x = document.getElementById(“myDL”); Try it Yourself » Create a DList Object You can create a <dl> element by using the document.createElement() method: Example var x = document.createElement(“DL”); Try it Yourself » Standard […]

HTML DOM Div Object

Div Object The Div object represents an HTML <div> element. Access a Div Object You can access a <div> element by using getElementById(): Example var x = document.getElementById(“myDIV”); Try it Yourself » Create a Div Object You can create a <div> element by using the document.createElement() method: Example var x = document.createElement(“DIV”); Try it Yourself » Div […]

HTML DOM Dialog Object

Dialog Object  The Dialog Object is new in HTML5. The Dialog object represents an HTML <dialog> element. Note: The <dialog> element is currently only supported in Chrome 37+, Safari 6+ and Opera 24+. Access a Dialog Object You can access a <dialog> element by using getElementById(): Example var x = document.getElementById(“myDialog”); Try it Yourself » Create a […]

HTML DOM DFN Object

DFN Object The DFN object represents an HTML <dfn> element. Access a DFN Object You can access a <dfn> element by using getElementById(): Example var x = document.getElementById(“myDFN”); Try it Yourself » Create a DFN Object You can create a <dfn> element by using the document.createElement() method: Example var x = document.createElement(“DFN”); Try it Yourself » Standard […]

HTML DOM Details Object

Details Object The Details object represents an HTML <details> element. Note: The <details> element is not supported in Internet Explorer. Access a Details Object You can access a <details> element by using getElementById(): Example var x = document.getElementById(“myDetails”); Try it Yourself » Create a Details Object You can create a <details> element by using the document.createElement() method: […]

HTML DOM Del Object

Del Object The Del object represents an HTML <del> element. Access a Del Object You can access a <del> element by using getElementById(): Example var x = document.getElementById(“myDel”); Try it Yourself » Create a Del Object You can create a <del> element by using the document.createElement() method: Example var x = document.createElement(“DEL”); Try it Yourself » Del […]

HTML DOM DD Object

The DD object represents an HTML <dd> element. Access a DD Object You can access a <dd> element by using getElementById(): Example var x = document.getElementById(“myDD”); Try it Yourself » Create a DD Object You can create a <dd> element by using the document.createElement() method: Example var x = document.createElement(“DD”); Try it Yourself » Standard Properties and […]

HTML DOM Datalist Object

Datalist Object  The Datalist Object is new in HTML5. The Datalist object represents an HTML <datalist> element. Note: The <datalist> element is not supported in Internet Explorer 9 (and earlier versions), or Safari. Access a Datalist Object You can access a <datalist> element by using getElementById(): Example var x = document.getElementById(“myDatalist”); Try it Yourself » Create a […]

HTML DOM ColumnGroup Object

ColumnGroup Object The ColumnGroup object represents an HTML <colgroup> element. Access a ColumnGroup Object You can access a <colgroup> element by using getElementById(): Example var x = document.getElementById(“myColgroup”); Try it Yourself » Create a ColumnGroup Object var x = document.createElement(“COLGROUP”); ColumnGroup Object Properties Property Description span Sets or returns the value of the span attribute of a […]

HTML DOM Code Object

The Code object represents an HTML <code> element. Access a Code Object You can access a <code> element by using getElementById(): Example var x = document.getElementById(“myCode”); Try it Yourself » Create a Code Object You can create a <code> element by using the document.createElement() method: Example var x = document.createElement(“CODE”); Try it Yourself » Standard Properties and […]

HTML DOM Cite Object

Cite Object The Cite object represents an HTML <cite> element. Access a Cite Object You can access a <cite> element by using getElementById(): Example var x = document.getElementById(“myCite”); Try it Yourself » Create a Cite Object You can create a <cite> element by using the document.createElement() method: Example var x = document.createElement(“CITE”); Try it Yourself » Standard […]

HTML DOM Caption Object

Caption Object The Caption object represents an HTML <caption> element. Access a Caption Object You can access a <caption> element by using getElementById(): Example var x = document.getElementById(“myCaption”); Try it Yourself » Create a Caption Object You can create a <caption> element by using the document.createElement() method: Example var x = document.createElement(“CAPTION”); Try it Yourself » Tip: You […]

HTML DOM Blockquote Object

Blockquote Object The Blockquote object represents an HTML <blockquote> element. Access a Blockquote Object You can access a <blockquote> element by using getElementById(): Example var x = document.getElementById(“myBlockquote”); Try it Yourself » Create a Blockquote Object You can create a <blockquote> element by using the document.createElement() method: Example var x = document.createElement(“BLOCKQUOTE”); Try it Yourself » Blockquote […]

HTML DOM Bdo Object

Bdo Object The Bdo object represents an HTML <bdo> element. Access a Bdo Object You can access a <bdo> element by using getElementById(): Example var x = document.getElementById(“myBdo”); Try it Yourself » Create a Bdo Object You can create a <bdo> element by using the document.createElement() method: Example var x = document.createElement(“BDO”); Try it Yourself » Bdo […]

HTML DOM Base Object

Base Object The Base object represents an HTML <base> element. Access a Base Object You can access a <base> element by using getElementById(): Example var x = document.getElementById(“myBase”); Try it Yourself » Create a Base Object You can create a <base> element by using the document.createElement() method: Example var x = document.createElement(“BASE”); Try it Yourself » Base […]

HTML DOM Aside Object

Aside Object  The Aside Object is new in HTML5. The Aside object represents an HTML <aside> element. Note: The <aside> element is not supported in Internet Explorer 8 and earlier versions. Access an Aside Object You can access an <aside> element by using getElementById(): Example var x = document.getElementById(“myAside”); Try it Yourself » Create an Aside Object […]

HTML DOM Article Object

Article Object The Article Object is new in HTML5. The Article object represents an HTML <article> element. Note: The <article> element is not supported in Internet Explorer 8 and earlier versions. Access an Article Object You can access an <article> element by using getElementById(): Example var x = document.getElementById(“myArticle”); Try it Yourself » Create an Article Object […]

HTML DOM Area Object

Area Object The Area object represents an HTML <area> element. Access an Area Object You can access an <area> element by using getElementById(): Example var x = document.getElementById(“myArea”); Try it Yourself » Create an Area Object You can create an <area> element by using the document.createElement() method: Example var x = document.createElement(“AREA”); Try it Yourself » Area […]

HTML DOM Address Object

Address Object The Address object represents an HTML <address> element. Access an Address Object You can access an <address> element by using getElementById(): Example var x = document.getElementById(“myAdr”); Try it Yourself » Create an Address Object You can create an <address> element by using the document.createElement() method: Example var x = document.createElement(“ADDRESS”); Try it Yourself » Standard […]