| The syntax of pseudo-class: |
|
| CSS classes can also be used with pseudo-class: |
|
a:link { color: #FF0000 } /* unvisited link */
a:visited { color: #00FF00 } /* visited link */
a:hover { color: #FF00FF } /* mouse over link */
a:active { color: #0000FF } /* selected link */
|
a:hover must come after a:link and a:visited in the CSS definition in order to be effective!!
a:active must come after a:hover in the CSS definition in order to be effective!!
a.red:visited { color: #FF0000 }
<a class="red" href="scores/index.html">Scores</a>
|