Saved Bookmarks
| 1. |
What are pseudo-classes? |
|
Answer» A pseudo-class is basically used to define or specify a special state of an HTML element. This can be used in conjunction with an existing CSS selector to add effects to elements based on their state. For instance, changing the style of an element when a user hovers over it or using different STYLES for visited and unvisited links. The pseudo-class gives you the ability to do all of this. Syntax: selector: pseudo-class{ property: value;}In CSS, there are many pseudo-classes, but the ones that are most FREQUENTLY used are as follows:
|
|