Complex CSS Selectors - RJM Programming - July, 2016
... CSS works on HTML ...
... as shown below ...
... Thanks to ...
http://learn.shayhowe.com/advanced-html-css/complex-selectors/

Default text colour is black ... This is an unselected p outside section ...

... This is an unselected p within section ...

... This is an h2 ...

This h2 ~ p and h2 + p section paragraph will be selected as a "General Sibling" and so background-color will be lightblue and will be selected as an "Adjacent Sibling" so font colour will be blue

... This is an unselected p within section ...

This h2 ~ p section paragraph will be selected as a "General Sibling" and so background-color will be lightblue

... This is an unselected p outside section and outside article ...

This article > p article paragraph will be selected as a "Direct Child" and so font-style will be italic

... This is an unselected p within article ...