With pseudo classes you have the ability to add effects to your anchor tags, otherwise known as 'hyperlinks'.
Some most common pseudo classes used for styling hyperlinks are :
: Link
Link pseudo-class specifies the style rule for unvisited links, i.e. the link which has not yet been clicked or the mouse pointer has not passed over it.
| Example |
| A: link { color : green ;} |
| |
:Visited
Visited pseudo-class specifies the style rule for visited links, i.e. the link which has already been clicked. Once the user has visited the link, its color is usually changed, so that the user recognizes which links are still unvisited.
| Example |
| A : visited { color : red font-weight : bold ;} |
| |
:Hover
Hover pseudo-class specifies the style rule for element that is presently under the mouse cursor. The cursor is said to hover over the link.
| Example |
| A : hover { color : yellow;} |
| |
:Active
Active pseudo-class specifies the style rule for element that is presently under the focus, i.e. the link has been currently selected.
| Example |
| A : active { color : black font-size : 18pt;} |
| |
|