In website design, ‘parent and child elements’ refer to the relationship between HTML elements. A parent element contains one or more child elements within it. The parent controls the layout and style of the child, and changes to the parent can affect the child’s appearance or behaviour. This structure helps organise content and manage how elements interact on a webpage.
See also: Inheritance