Machine Don

What is specificity?

The CSS rule for when two rules fight over the same box: the one that points more precisely wins. An id beats a class, and a class beats a tag.

An analogy

A tailored suit beats one off the rack: an order meant for one customer outranks an order meant for everyone.

Where it shows up in the course

Related terms