Link visted hover active
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <style type="text/css"> a:link { background: blue; color: white; } a:visited { background: crimson; color: pink; } a:hover { background: black; color: white; } a:active { background: red; color: white; } </style> </head> <body> <a href='http://www.google.com'>Google</a> | <a href='http://www.wrox.com'>Wrox</a> | <a href='http://www.php.net'>PHP</a> | <a href='http://www.quirksmode.org'>Quirks Mode</a> </body> </html>