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 CSS Foundations Advanced Selectors Additional Pseudo-Classes

Serhiy Hryva
Serhiy Hryva
2,026 Points

Are additional pseudo classes used often?

For those, who have worked with it for a while, are the additional pseudo classes used much or is it something that just good to have in mind now and then, but they aren't used on regular bases?

1 Answer

I wouldn't say they're used often, but when you need them, you really need them.

They're a part of the tool belt, so to speak, and it's a good idea to know them, and experiment with them, as that'll make it easier to recognise when and how to use them.

The thing is, most pseudo-classes we have available have been introduced in the CSS Level 3 specification, and people are still finding great new uses for them every day. You might find yourself needing them in certain scenarios more often than not.

Most of the time you'll be able to do without them, but sometimes, they'll serve as really useful shortcuts, and sometimes, they'll let you do things that wouldn't be possible without them.

Serhiy Hryva
Serhiy Hryva
2,026 Points

Thank you for a prompt and detailed answer.