| Courses Software Training | Locality Bangalore University Road |
In CSS, pseudo-classes are used to select and style elements based on their state or relationship with other elements.
Pseudo-classes are preceded by a colon : and are added to the end of a selector to target specific elements that meet a particular criteria.
:hover pseudo-class
This pseudo-class selects an element when the user hovers their mouse pointer over it.
It is commonly used to change the appearance of links or buttons when hovered.
:active pseudo-class
This pseudo-class selects an element when it is actively clicked or interacted with.
It is often used to change the appearance of buttons or links when they are clicked.