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.

Solution: Working with selectors

Solution: Working with selectors

From the course: Practical CSS for No-Coders

Solution: Working with selectors

(bouncy upbeat music) - [Instructor] I hope that challenge was super fun for you and you had a good time exercising the CSS that you've learned so far. Let's go through all of the answers to the questions that I asked. So the first one we said, set all the paragraphs to have blue text. Well, we've done this a couple of times in the course already. So this one you probably had no trouble with. It was p for paragraph and we'll say the color is blue. And sure enough, there's a bunch of blue paragraphs there on the page. Number two, set all the headings one and two to have green uppercase text. Use a single style declaration to do this. So we know we have to select the h1s. We know we have to select the h2s and we need to make sure that they are evaluated separately. If we separate by a space that's a descendant selector, we need to separate with a comma to make this a grouped selector so that each one is evaluated…

Contents