Introduction to the Cascade
Let's dig deeper into the "C" in CSS and get an overview of the cascade.
We'll cover the following
Cascading style sheets
What exactly does cascading mean? To answer this question, let’s start with an exercise.
Exercise
Add CSS, and write two rules:
- Select for
p
elements, and give the rule acolor
property with the valueblue
. - For this rule, select for
p
elements again, and give it acolor
property with the valueorange
.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy