Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS a vs a:link Re: a vs a:link

#86451
Johann
Member

One thing that occured to me before, but which I didn’t use yet, is using anchor tags without hrefs for javascript “links” (buttons that do stuff without going to a new page) – not because it makes any sense semantically, but because it’s a one character tag instead of a class, which easily wins over semantics for me :P

But I always thought that then the hover state would be the same for both. Now I fiddled a bit:

http://jsfiddle.net/sqpPs/

Yay! D’oh, too :D

Also perhaps of interest:

Eric Meyer: Who Ordered the Link States?