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 Selectors Link and User Action Pseudo-Classes

Chris Martinez
Chris Martinez
11,715 Points

what just happened? input changed to anchor element?

the instructor applied the focus psuedoclass to the input element, but the example that immediately followed showed the psuedoclass being applied to the anchor element, and then the css text afterwards showed the anchor element in place of input. did i miss something?

1 Answer

Gina Bégin
PLUS
Gina Bégin
Courses Plus Student 8,613 Points

Hi Chris, if you look in the questions for the video, you'll notice that others have remarked on the same thing. Apparently, Treehouse has taken note of this problem and will work on getting it fixed. Chris Dziewa mentioned this in an earlier answer in the forums:

"Hopefully this clears things up for you: input:focus should not select your links, only the actual input elements like text and email fields, etc. To select the hyperlinks on focus, you would use the a:focus selector."