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 trialScott Wolf
Front End Web Development Techdegree Student 1,148 Points:focus
Can someone explain this a little more in this exerises
the input[type="text"]:focus {}
part went above my head a bit
1 Answer
Steven Parker
231,275 PointsCongratulations on figuring it out!
But for the benefit of anyone else reading this becuase they are confused, let's break the selector down:
-
input only
<input>
elements will be selected -
[type="text"] the element must also have a type property set to
"text"
- :focus and this element must currently have focus (be the one taking input)
Scott Wolf
Front End Web Development Techdegree Student 1,148 PointsScott Wolf
Front End Web Development Techdegree Student 1,148 Pointslol 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