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!
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

karan Badhwar
Web Development Techdegree Graduate 18,135 Pointsattribute selector and hover property
We just gave the Cursor: pointer; property to the button <input>, but how it is able to change, coz we have not giver it the :hover pseudo class?
1 Answer

Jason Larson
8,352 PointsThe cursor attribute does not require the hover pseudo-class. You can specify it in the hover pseudo-class, but you will get the same result.
karan Badhwar
Web Development Techdegree Graduate 18,135 Pointskaran Badhwar
Web Development Techdegree Graduate 18,135 PointsHi Jason, thankyou for the response, but how do the element know then it is only to hover or just change the cursor for the specific Box, as in, in which the button is placed in like <input> tag box
Jason Larson
8,352 PointsJason Larson
8,352 PointsSince it's a CSS style element, it will be determined by the CSS selector rule you specify.