Parents-Children-Siblings within the DOM

A very important concept of the DOM is that each object has information about the relationship between that object and the other objects of the page.

The relationships between the different objects (elements) of a page are:

Parents -> the tags that contain the element

Siblings -> other tags that have the same parent with them

Children -> tags that these elements contain

Elements realationships

As we will see later, these relationships are the key to enable you to manipulate the DOM.