DOM (Document Object Model): Document Object Model is a hierarchical representation of HTML and XML documents in a format that is easier to interpret in terms of programming. It makes manipulation of tags, elements, attributes, and classes by interpreting its structure in the form of a tree-like model consisting of nodes.
Element: In HTML DOM, Element is the general base class for all objects. An Element object represents all HTML elements.
Object instanceof ObjectType
- Object: It stores the Object which need to be tested.
- ObjectType: It stores the Object Type to be tested against.
Div is detected as a DOM Object x is detected as a non-DOM Object