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.

Element objects

Element objects

- [Instructor] The element interface represents an object of a document. And it describes methods and properties that are common to all kinds of elements in the DOM. It serves as the base interface for about every HTML elements found in the DOM. And some of the properties and methods belonging to this class, the element class, which you probably have already used, and my not know it, are things like: the attributes, the class name, the id, the inner HTML, getAttribute, and so on. So, this is a really important interface, that has a lot of very useful methods and properties, and let's look at some of these here, that are associated with this element interface. Let me resize this window just a little bit more, so I can have more room. Probably can go a little bit more up here. So, again the top window is my output of this document. It has more content by the way, I'm just moving down here so I can see the cat, the car and the donut here. The left window here, the middle, is the elements…

Contents