Prev | Current Page 127 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

These pseudo-classes represented
the state of links??”unvisited, visited, or currently being selected??”in a web page
document. In CSS1, all three pseudo-classes were mutually exclusive.
CSS2 expanded the range of pseudo-classes and ensured that they could be applied
to any element. :link and :visited now apply to any element defined as a link in
the document language. While they remain mutually exclusive, the :active
pseudo-class now joins :hover (p. 86) and :focus (p. 87) in the group of dynamic
pseudo-classes. The :hover pseudo-class matches elements that are being designated
by a pointing device (for example, elements that the user??™s hovering the cursor over);
:active matches any element that??™s being activated by the user; and :focus matches
any element that is currently in focus (that is, accepting input).
CSS2 also introduced the :lang (p. 89) pseudo-class to allow an element to be
matched on the basis of its language, and the :first-child (p. 88) pseudo-class
to match an element that??™s the first child element of its parent.


Pages:
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139