THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
TUTORIALS
 

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():

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

Create a DT Object

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

var x = document.createElement("DT"); Try it

Standard Properties and Events

The DT object also supports the standard properties and events.