CodeZettaInterview Hub

CSS · Selectors · Fresh / Intern · Concept

Explain child, sibling, and adjacent sibling combinators.

Short Interview Answer

> child, ~ general sibling, + adjacent sibling.

Detailed Explanation

They don't select ancestors. Whitespace descendant is more expensive/broad than >.

Did you know this answer?