I'm trying to understand the concept of DOM and Objects in association with JavaScript. Really confuse with the term object/elements in different contexts.. do you refer elements as objects in the context of DOM..?
Correct me if the statements are false:
- The DOM is a mapping/representation of the family-tree structure of objects (nodes/elements) => the body element is an example of a object that is the child of the document object (level one)
- The body object or <a> object has properties/attributes such as href=" "
- You can access a obj's property by using this formula "objname.propertyname"
- You can access a obj's functions by using this formula "objname.functionname"
Lastly, I don't understand 'document.body' body is neither a property nor a function...
In this case, does it mean that a object's (document) property can contain an object(body)???!?