It??™s possible, for instance, that you might want
to have different hover or focus effects on visited and unvisited links. In that case,
you could combine pseudo-classes: a:link:hover.
5 For a discussion about the pros and cons of different pseudo-class orders, see
http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states/.
83 Selector Reference
If you want to apply special styling to the hover state of a link that also has keyboard
input focus, use a:focus:hover.
:link
:link {
declaration block
}
This pseudo-class matches link
elements that are determined to be
unvisited.
In CSS1, this pseudo-class applied only
to a elements that had an href attribute
(that is, a hypertext link). In CSS2, the
document language can define elements
as hyperlink anchors. It??™s up to the user
agent to decide which links it considers to be visited and unvisited.
Example
This example will set the font color of all
unvisited HTML links to #cccccc:
a:link {
color: #cccccc;
}
The two pseudo-classes :link and :visited are mutually exclusive: a link is either
visited or unvisited.
Pages:
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142