Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS The Selectors Solution

I dont remember this being taught in the videos have i missed something?

input[type'submit']:active { background-color: red; }

In practice css selectors

3 Answers

Steven Parker
Steven Parker
231,275 Points

The practice session is just reinforcement for the actual course. The concepts being practiced here are taught in the CSS Selectors course.

This particular example is combining 3 different concepts:

  • type selector
  • attribute selector
  • pseudo-class selector
Steven Parker
Steven Parker
231,275 Points

I don't know if your personal style would benefit from "slowing down", but for most folks, the best thing beyond the training itself is practice, practice, practice! :wink:

Happy coding!

I agree with the people saying this tests on subjects not taught in the material which runs into it. It's frustrating because what are we to do? Go through the whole unit again to find out if we missed it, only to find we didn't because it wasn't there?

For me it would be better if, at the end of each unit, there was just a checklist of its content, such as a list of tags and attributes you just watched.

We haven't seen the CSS Selectors course, only less than a half of the CSS Basics course, so I guess that's what he meant, we haven't seen attribute selectors, they're a bit hard by the way :P

Steven Parker
Steven Parker
231,275 Points

This practice session is specifically to go with the CSS Selectors course, If you haven't seen it yet, you might want to put this one aside and do that first.

That's wrong, at the end of the 2nd phase from the CSS Basics course, it suggests you to do this practice :P CSS Selectors course is much further. That's why jasonj7 did this question.

Steven Parker
Steven Parker
231,275 Points

If the course suggests using this practice out of sequence, you may want to report it as a bug to the Support folks.
You could get an "Exterminator" :beetle: badge for it.