Introduction to the Cascade
Digging Deeper into the "C" in CSS
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
Pause and think: With these rules in place, what color will p
elements be?
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy