DOM lib - how to specify container node?

A p5.Element can become a child of another element via its method parent(): :family_man_woman_girl_boy:
p5js.org/reference/#/p5.Element/parent

And a p5.Element can make another element its child via its method child(): :child:
p5js.org/reference/#/p5.Element/child