A pseudo-class is used to define a special state of an element.
Syntax:-
selector:pseudo-class { property:value; }
Ex: –
div:hover { background-color: red;}
Pseudo-classes–
- :link
- :visited
- :hover
- :active
- :focus
- :checked
- :first-child
- :first-of-type
- :nth-child(n)
Latest posts by rajeshkumar (see all)
- AWS Error: Access denied by EC2 Instance Connect - December 4, 2023
- How to get Blackduck Trial version? - December 3, 2023
- PHP ionCube Error: cannot be decoded by this version of the ionCube Loader - December 2, 2023