Cascade and inheritance in CSS
This article is for some of you who are beginner and intermediate in programming and want to know more about cascade and inheritance in CSS
2 min readMar 11, 2022
--
1. Cascade
The short form of CSS is from Cascading Style Sheets and that first word is very important and needs to be understand.
Cascade means that the order of the properties matter. Let’s make an example:
h1 {
color: black;
}
h1 {
color: red;
}