...

/

The Cascade and Inheritance

The Cascade and Inheritance

Review two core concepts of CSS: the cascade and inheritance.

What is the cascade?

The cascade is the “C” in CSS. It’s therefore at the very core of CSS. The cascade algorithm determines the properties applied to page elements.

This determination is based on inheritance, specificity, importance, and rule order. The cascade also ensures that we have no conflicts. If we have multiple CSS rules for the same property and on the same element, the cascade determines which rule is applied.

So, while keeping the cascade in mind, let’s take a look at the rules it uses to make these ...