CodeZettaInterview Hub

CSS · Cascade · Fresh / Intern · Concept

Explain specificity in simple terms.

Short Interview Answer

IDs > classes/attributes/pseudo-classes > elements/pseudo-elements; inline beats all except !important.

Detailed Explanation

Equal specificity → source order. :where() has zero specificity; :is() takes most specific argument.

Did you know this answer?