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

:focus

Can someone explain this a little more in this exerises

the input[type="text"]:focus {}

part went above my head a bit

lol nvm just figured it out.

it was just for the input box of the email

for some reason i was thinking he men't all the text on the page

silly me

1 Answer

Steven Parker
Steven Parker
231,248 Points

Congratulations on figuring it out! :+1:

But for the benefit of anyone else reading this becuase they are confused, let's break the selector down:

  • input :point_left: only <input> elements will be selected
  • [type="text"] :point_left: the element must also have a type property set to "text"
  • :focus :point_left: and this element must currently have focus (be the one taking input)