Why do we need to set an ID to the parent element?

Because we need to access it when nesting an element inside itBecause we need to create the parent inside the scriptBecause we want to create a new element inside the script

Because we need to access it when nesting an element inside it.