WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Speaking of "Skip to" links


From: Jukka K. Korpela
Date: Dec 15, 2004 9:55AM

On Wed, 15 Dec 2004, julian.rickards wrote:

> Jukka wrote:
> "When styling links, one should normally use selectors like :link and
> :visited, not the element name A alone."
> A small point perhaps but to save filespace of the CSS stylesheet, I combine
> common style declarations of links ( tags) using the a selector and then
> where :link, :visited, :active, and/or :hover differ, I declare those
> differences separately.

But that creates exactly the problem I was referring to: any styles you
then set for links will be applied to destination anchors
... as well. This is fine _if_ you don't define any
destination anchors that way but use id="..." attributes instead.
But for legacy documents, or documents that might get edited by others,
a { ... } is risky.

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/