CSS Anchors, Links and Pseudo Elements
a:link {color: #009900;} a:visited {color: #999999;} a:hover {color: #333333;} a:focus {color: #333333;} a:active {color: #009900;} Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective. Note: a:active MUST come after a:hover in the CSS definition in order to be effective. Pseudo elements: first-line first-letter The following properties can be assigned to the first-line pseudo element: background clear color font letter-spacing line-height text-decoration text-transform vertical-align word-spacing p{font-size: small;} p:first-line {font-size: medium; color: #ff0000; p:first-letter {font-size: medium; color: #0000ff;

First line Second line

The CSS 3 specs suggest pseudo elements should include two colons, so p::first-line as opposed to p:first-line. This is to differentiate them with pseudo classes. A pseudo-class is used to define a special state of an element.
up