Can you style an anchor based on it's href contents. For example if I have link that points to a .pdf file,
would it be possible to style the anchor based on it's href attributes. I know I can use javascript to parse the href value or use css to apply a class to these tags, but i was told today that you can style based on href attribute extension? I can't seem to find anything in the css2 sepcification and google isn't returning anything on the subject, maybe im looking up wrong info. Thanks in advance
Code:
<a href="somepdf.pdf">link</a>