The Document Object Model (DOM) is an interface that treats HTML or XML document as a tree structure, where each node is an object of the document. DOM also provides a set of methods to query the tree, alter the structure, style.

DOM also uses the term element: which is quite similar to a node. So, what’s the difference between a DOM node and an element? Let’s find out!

#dom #node #element #javascript #programming

What's the Difference between DOM Node and Element?
1.85 GEEK