CodeZettaInterview Hub

SCSS · Nesting · Junior · Code Output

Output: .nav { li { a { color: red } } } compiles to?

Short Interview Answer

.nav li a { color: red; } — descendant selectors, not child combinators unless > is written.

Detailed Explanation

Candidates sometimes think nesting implies >. Be explicit with combinators when needed.

Did you know this answer?