Combinators

These are examples of Child Selector

Paragraph 1 in the div.

Paragraph 2 in the div.

Paragraph 3 in the div.

Paragraph 4 in the div.

Paragraph 5. Not in a div.

Paragraph 6. Not in a div.

These are examples of Descendant Selectors

Paragraph 1 in the div.

Paragraph 2 in the div.

Paragraph 3 in the div.

Paragraph 4. Not in a div.

Paragraph 5. Not in a div.

These are Examples of Adjacent Sibling Selectors

Paragraph 1 in the div.

Paragraph 2 in the div.

Paragraph 3. Not in a div.

Paragraph 4. Not in a div.

Thes are Examples of Adjacent Sibling Selectors

Paragraph 1.

Paragraph 2. in the div

Paragraph 3.

Paragraph 4.

The paragraphs being affected by the combinators are colored blue. The paragraphs NOT affected are colored yellow.