Pseudo-Classes in Pre-CSS3 specification

Here is a demonstration of Pseudo-classes available in the CSS1 and CSS2

Here is a Link which is styled using :link, :visited, :hover and :active pseudo-classes.

a:link{font-size:15px;color:red;font-weight:bold;border:1px solid #333;padding:4px;background-color:#eeeeee;text-decoration:none;}
a:visited{font-size:15px;color:red;font-weight:bold;border:1px solid #333;padding:4px;background-color:#eeeeee;text-decoration:none;}
a:hover{font-size:15px;color:red;font-weight:bold;border:1px solid #000;padding:4px;background-color:#cccccc;text-decoration:none;}
a:active{font-size:15px;color:red;font-weight:bold;border:1px solid #000;padding:4px;background-color:#999999;text-decoration:none;}

Another example of the pre CSS3 pseudo-classes with :focus and :hover.

input:hover{background-color:red;}
input:focus{background-color:gold;}

The :first-child pseudo-class in action.

li:first-child{color:red;font-weight:bold;}

Pseudo-Elements in Pre-CSS3 specification

The :first-letter or ::first-letter pseudo-element in action.

With all due diffidence, then, I would suggest that a tardy recognition of the inherent falsehood and barrenness of magic set the more thoughtful part of mankind to cast about for a truer theory of nature and a more fruitful method of turning her resources to account… In this, or some such way as this, the deeper minds may be conceived to have made the great transition from magic to religion. - J.G.Frazer, The Golden Bough (1890)

p#p1::first-letter{font-weight:bold;font-size:27px;}

The :first-line or ::first-line pseudo-element in action.

The idea of ghosts inevitably—Spencer’s favourite word—develops into that of Gods, the ghosts of remote ancestors or of superior persons becoming divinities… It is a fine example of the introspectionist psychologist’s, or ‘if I were a horse’, fallacy … If Spencer were living in primitive conditions, those would, he assumed, have been the steps by which he would have reached the beliefs which primitives hold. - E.E.Evans-Pritchard, Theories of Primitive Religion

p#p2::first-line{color:#333;font-weight:bold;}