Why does the div element act as a box around the p element?

Because the p element is a child element nested inside the divBecause the div element is nested inside the p elementThe p element can only go inside a div element The div element cannot act as a box around a p element

Because the p element is a child element nested inside the div.