descendant

Any node below a given node in the DOM tree: its children, their children and so on.

In more detail

The children property lists only direct child elements, while childNodes also includes text and comment nodes. Many CSS properties such as color are inherited by all descendants.

Related terms

Taught in

References