Using Attribute Selectors to choose linked file type for anchor
<!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>Attribute Selectors</title> <style type='text/css'> * { font: 14px sans-serif; } a[href$=".html"] { background: url('firefox.png') no-repeat left center; padding-left: 20px; color: blue; text-decoration: none; } </style> </head> <body> <a href='home.html'>Go back to the home page.</a> </body> </html>