11<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
22<html lang="en">
3- <!-- $Id: selector.src,v 1.52 1998-01-28 06:42:00 ijacobs Exp $ -->
3+ <!-- $Id: selector.src,v 1.53 1998-01-28 09: 06:54 howcome Exp $ -->
44<head>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<title>Selectors</title>
@@ -907,12 +907,12 @@ descend from A elements that have not yet been visited:</p>
907907</pre>
908908</div>
909909
910- <h3><a name="anchor-pseudo-classes">Anchor pseudo-classes</a>:
911- <span class="index-def" title="pseudo-classes:::link|:link">:link, </span>
912- <span class="index-def"
913- title="pseudo-classes:::active|:active ">:active, </span>
914- <span class="index-def" title="pseudo-classes:::visited|:visited ">:visited </span>, and
915- <span class="index-def" title="pseudo-classes, :hover|:hover ">:hover </span>
910+ <h3><a name="anchor-pseudo-classes">The Anchor pseudo-classes</a>:
911+ <span class="index-def" title="pseudo-classes:::link|:link|'link' pseudo-class ">:link</span>,
912+
913+ <span class="index-def" title="pseudo-classes:::visited|:visited|'visited' pseudo-class ">:visited </span>,
914+ <span class="index-def" title="pseudo-classes:::hover|:hover|'hover' pseudo-class ">:hover </span>, and
915+ <span class="index-def" title="pseudo-classes:::active|:active|'active' pseudo-class ">:active </span>
916916</h3>
917917
918918<p>User agents commonly display unvisited links differently from
@@ -923,6 +923,11 @@ of a link in one of several states:</p>
923923<li> The :link pseudo-class applies for links that have
924924not yet been visited.
925925
926+ <li> The :visited pseudo-class applies once the link has been
927+ visited by the user. <strong>Note.</strong>
928+ After a certain amount of time, user agents may choose to
929+ return a visited link to the (unvisited) 'link' state.
930+
926931<li> The :hover pseudo-class applies when the user designates, but
927932does not activate, a link. For example, a visual user agent could
928933apply this pseudo-class when the cursor hovers over an element. [or,
@@ -931,33 +936,31 @@ in our terminology, do cursors only hover over boxes? -howcome]
931936<li> The :active pseudo-class applies while the link is being
932937activated by the user.
933938
934- <li> The :visited pseudo-class applies once the link has been
935- visited by the user. <strong>Note.</strong>
936- After a certain amount of time, user agents may choose to
937- return a visited link to the (unvisited) 'link' state.
938-
939939</ul>
940940
941- <P>The four states are mutually exclusive.
942-
943- <pre>
944- A:link { color: red } /* unvisited links */
945- A:active { color: lime } /* active links */
946- A:visited { color: blue } /* visited links */
947- A:hover { color: yellow } /* user hovers */
948- </pre>
949-
941+ <P>The four states are mutually exclusive. If a link qualifies for
942+ several states, the order of preference is: active, hover, visited,
943+ link.
950944
951- <p>User agents are not required to reformat a currently displayed
945+ <p>User agents are not required to reflow a currently displayed
952946document due to anchor pseudo-class transitions. For instance, a style
953947sheet may legally specify that the <span
954948class="propinst-font-size">'font-size'</span> of an :active link
955949should be larger that a :visited link, but the UA is not required to
956- dynamically reformat the document when the reader selects the
950+ dynamically reflow the document when the reader selects the
957951:visited link.</p>
958952
959953<div class="example"><p>
960- In HTML, the following two CSS2 declarations are equivalent and
954+
955+ <pre>
956+ A:link { color: red } /* unvisited links */
957+ A:visited { color: blue } /* visited links */
958+ A:hover { color: yellow } /* user hovers */
959+ A:active { color: lime } /* active links */
960+ </pre>
961+
962+
963+ <p>In HTML, the following two CSS2 declarations are equivalent and
961964select the same elements:</p>
962965
963966<pre>
0 commit comments