When do the :hover, :focus, and :active pseudo-classes apply?

added by JavaScript Kicks
12/12/2018 9:44:26 AM

764 Views

When we select an element by its .class or #id, we're using predefined and unchanging attributes that are baked into the DOM. With pseudo-classes, we can select elements using information that isn't already in the DOM and can change based on how a user interacts with the page.


0 comments