DOM Manipulation can make web applications customizable and the data of the webpage can be updated without refreshing the page. By DOM manipulation we can add, change and remove any HTML elements or attributes and CSS styles associated with it. Any event can also be attached to the element.

Let’s learn what is the DOM and how it is created.

What is the DOM?

The DOM (Document Object Model) is an object oriented representation of an HTML or XML document in a logical tree structure where each node contains an object which represents a part of the document.

Node can also have events attached to them which when triggered the event handler attached to them is executed. The DOM also acts as an interface between JavaScript and the HTML or XML document which allows creation of customizable web pages.

#web-development #html #javascript

A Beginner’s Guide to DOM Manipulation
11.70 GEEK