Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Commonly used pseudo-classes in CSS
Following are some of the commonly used pseudo-classes
| Value |
Description |
|---|---|
| :link |
Use this class to add special style to an unvisited link. |
| :visited |
Use this class to add special style to a visited link. |
| :hover |
Use this class to add special style to an element when you mouse over it. |
| :active |
Use this class to add special style to an active element. |
| :focus |
Use this class to add special style to an element while the element has focus. |
| :first-child |
Use this class to add special style to an element that is the first child of some other element. |
| :lang |
Use this class to specify a language to use in a specified element. |
Advertisements
