Dave Lee wrote:You are on the right track with the selectors in your first post - rather than using pseudo classes.
The first [href] {} example would actually work in web outputs viewed in a browser, although it probably doesn't work in the the XML editor or PDF outputs.
Thanks Dave.
As a learning experience, why would you recommend using the [href] selector in this instance over pseudo classes? I can understand why you would want to use this method, if an attribute can be used by multiple html elements. However, my understanding is that the href attribute is only really used by <a>, <link> and <area> elements. Of those three elements, you would only realistically be looking to style <a> tags this way, so pseudo classes would be my preferred method (due to the ability to individually style the different link states).
This isn't intended as a criticism, more of an opportunity to learn from your thought process. There is probably something really simple that I am overlooking.
"In an ideal world, software should be simple, well designed, and completely intuitive to end users. In the real world, good documentation is king."