From the course: The DOM in JavaScript, jQuery, AngularJS, and React

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The Node interface

The Node interface

From the course: The DOM in JavaScript, jQuery, AngularJS, and React

Start my 1-month free trial

The Node interface

- The node interface is probably one of the most important interfaces in the DOM, and I think it should deserve much more attention. For one thing, it is the primary data type for the whole DOM, this means that everything in the DOM, things like the document object, the bodied element, table element, tags, everything visible and not visible, that are contained within webpage, some way or one way or another is connected to the node interface. And this is why every object in the node is called a node. Now there are many types of nodes in the DOM. The three most important ones and most commonly used ones are the text node, the element node, and the attribute node. So if you look at this, two examples here, we have anchor tag and also the H one or heading one tag. Now if you look at this, you see that the anchor tag and H one tags are considered as the element node 'cause they are the element tags of the DOM. And then the text node are referred to the content that encapsulated between…

Contents