From the course: Practical CSS for No-Coders

Unlock the full course today

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

Understanding inheritance in CSS

Understanding inheritance in CSS

From the course: Practical CSS for No-Coders

Understanding inheritance in CSS

- In our links video, I touched on this concept just a little bit, of something called inheritance and specificity. These are two of the most complicated concepts inside of CSS and I don't want to go too deeply into them in this very beginner-level course, but we have encountered inheritance a couple of times. So I thought I'd point this out to you in a bit more tangible detail so that you are more conscious of it happening inside of your CSS. So I've gone back to our earliest webpage here, added a couple of links just for argument's sake here, and let's go through this styling process one more time and talk a little bit more about what is happening as we apply these styles now that you're familiar with the code. So if I start by saying "body," and I say my font family is Arial, Helvetica, sans serif, you'll notice that of course the entire webpage changes to, in this case, the Arial font. We've seen that a…

Contents