Core: learn it Step 3 of 16 on the Frontend Developer roadmap

Cascade and specificity

When two rules clash, the browser decides using specificity, source order and inheritance. Understanding this cures the habit of adding !important everywhere.

Learn it on JeliScript

Resources

More in CSS fundamentals

See it on the Frontend Developer roadmap