From the course: The DOM in JavaScript, jQuery, AngularJS, and React
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
The Node interface
From the course: The DOM in JavaScript, jQuery, AngularJS, and React
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Developer tools7m 12s
-
(Locked)
What is the DOM?5m 18s
-
(Locked)
The DOM tree5m 59s
-
(Locked)
nodeType and nodeName properties7m 17s
-
(Locked)
The Node interface10m 50s
-
(Locked)
The Document object12m 8s
-
(Locked)
The Document methods10m 27s
-
(Locked)
Element objects10m 24s
-
(Locked)
Modifying text in the DOM9m 16s
-
(Locked)
Event objects11m 54s
-
(Locked)
Window object6m 56s
-
(Locked)
CSS properties and the DOM13m 50s
-
(Locked)
Traversing the DOM tree10m 18s
-
-
-
-
-
-