WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Div Object


Div Object

The Div object speaks to a HTML <div> element.

Access a Div Object

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

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

Create a Div Object

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

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

Div Object Properties

Property Description
align Not upheld in HTML5. Use

Standard Properties and Events

The Div object additionally underpins the standard properties and events.