From the course: HTML, CSS, and JavaScript: Building the Web

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Cascading and inheritance

Cascading and inheritance

- [Instructor] Hello and welcome back. This is lesson four in chapter three, Introduction to CSS. So, in our last lesson, we managed to set up a CSS style sheet and played with a couple of simple rules. Now, we're going to talk about one of the most important concepts in CSS, cascading and inheritance. So, CSS stands for cascading style sheets. We already covered style sheets. Cascading and inheritance are two important concepts that help us decide how those styles get applied to the elements in the webpage. So, like we've done before, let's use a home improvement or interior design analogy to explain these concepts. Think about CSS cascading, like picking a common color palette for the whole house and then picking accent wall colors to repaint specific rooms for a visual impact. And then doing something like making sure that all the photo frames on walls have one color, but then just picking one photo frame maybe that has a special significance to have a different palette. So, what…

Contents