Cascade and inheritance in CSS

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;
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store