From the course: CSS: Inheritance, Specificity, and the Cascade
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Challenge: Explaining specificity - CSS Tutorial
From the course: CSS: Inheritance, Specificity, and the Cascade
Challenge: Explaining specificity
(lively music) - [Instructor] Now that we've taken a look at inheritance and we've taken a look at specificity, let's take a look at another challenge. And in this particular challenge, code pen link is inside of your exercise files folder, you will find that I have given you a webpage and in this webpage, there's an article. Inside of the article, there's a series of these bullets associated with parts of the webpage. So we have hair, we have three bullets associated with hair. We have three bullets here associated with hands and feet and we have two bullets here that are associated with the face. So I've written out the styles down here. We have hair LI, LI first child and LI. And then article UL hands. So we have a number of things that are going on here in these five selectors that are here inside of our CSS. And the HTML is relatively straightforward, if you take a look at it. It's all pretty much the same for these…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.