Introduction
The child selector helps you style only direct children of an element. It keeps your styles neat and specific.
You want to style only the immediate list items inside a menu, not nested submenus.
You want to add spacing only between direct paragraphs inside a section, ignoring paragraphs inside divs.
You want to color only the first-level headings inside an article, not headings inside nested elements.
You want to apply a border only to direct child images inside a container, not images inside nested elements.