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 Selectors Selectors - Beyond the Basics Styling Form Buttons and Links with Attribute Selectors

karan Badhwar
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
karan Badhwar
Web Development Techdegree Graduate 18,135 Points

attribute 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

The 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
karan Badhwar
Web Development Techdegree Graduate 18,135 Points

Hi 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

Since it's a CSS style element, it will be determined by the CSS selector rule you specify.