It depends on your requirement.
Ideally, the parent element can be an element from where you wanna initiate the scroll. The child element will be an element which is the destination.
Technically in most of the cases, parent element is the outer most element and the child is nested inside the parent.