0Pricing
CSS Academy · Lesson

The Cascade: Origin and Order

Understand how stylesheet origin (user, author, browser) and source order determine cascade priority.

What is the Cascade?

The cascade is the algorithm CSS uses to determine which style declaration wins when multiple rules target the same property on the same element. It considers origin, importance, specificity, and source order.

Cascade Origins

CSS declarations come from three origins, in priority order:

  1. User-agent stylesheet — browser defaults
  2. User stylesheet — custom styles set by users (accessibility)
  3. Author stylesheet — your CSS files

All lessons in this course

  1. Specificity Calculation: Inline Style ID Class Element
  2. The Cascade: Origin and Order
  3. !important: When and Why Not
  4. Inheritance and the all Property
← Back to CSS Academy