The easiest way to style descendant elements is by using descendant selectors and child selector.

A descendant selector is made of two or more selectors, a parent element and a descendant element respectively, separated by only white space.

A child selector is made of two or more selectors, a parent element and a child element respectively, separated by >.

These two selectors are very similar in principle.

Example

CSS descendant and child selectors:

 

›› go to examples ››