What is HTML DOM ?

DOM is stand for Document Object Model. Which is mainly responsible for creating structured components and designing your web page.

The HTML DOM is an accepted guideline by W3C for how to access, update, add or remove HTML elements.
A Structure representation of an HTML document is provided by DOM.

DOM represents it in an objected-oriented way which can be manipulated using scripting languages like javascript.

All the objects in the HTML document are hierarchically connected to one another. The document object forms the root of all objects.

An HTML document is completely built using objects. There are three kinds of objects:

Core objects (Date, String, Numbers, Array, Math, etc…)
User defined object (customObject, Buidling, Employee, Company, etc…)
Host object (head, body, h1, document, p,  span, footer, etc…)

 

Leave a Reply