a[href~="gif jpg jpeg pdf zip doc txt png"] { }
( "CSS3 Selectors":http://www.w3.org/TR/css3-selectors/#type-selectors is a good help when dealing with these selectors )
Link to a separate website
I'm going to take this from "Kryogenix":http://www.kryogenix.org/days/173.html as he has covered this one fairly well.
a[href^="http:"] { }
Now, the real question with this whole exercise is this: Is This Neccessary? I don't know. The standard user response to seeing links is to click on them, not to think about where they go. Nor is it to try and figure out what your legend is. Hell, if they even have to try and figure out what your legend is, you've done a bad job.
And for that reason alone, I think I will not implement this. But I still reserve the right to change my mind at any point in time.
Tagged As CSS, Coding, HTML, Interaction Design, Usability
Comments are Open (0)
Posted at 01:13 PM