W
W
weranda2018-12-05 19:57:38
HTML
weranda, 2018-12-05 19:57:38

What's the difference between an ancestor/parent and a descendant/child?

Greetings
There are four concepts/elements:

  1. Ancestor
  2. Descendant
  3. Parent element (parent)
  4. child element

Can you explain the difference between them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-12-05
@weranda

Parent and child elements are immediate ancestors and children, while ancestors and children can be related by intermediate parents.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question