Using Dynamic Pseudo-Classes to add text decoration
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> <head> <title>Dynamic Pseudo-Classes</title> <style type='text/css'> ul { list-style: none; margin: 0; padding: 0; } a { text-decoration: none; } a:link { color: mediumblue; } a:visited { color: magenta; } a:hover { text-decoration: underline; } </style> </head> <body> <ul> <li><a href=''>A</a></li> <li><a href=''>B</a></li> <li><a href=''>C</a></li> <li><a href=''>D</a></li> </ul> </body> </html>