Re: a:hover and a:active and named anchors

Boris Zbarsky says:
>> Although I might be ignorant of some other purpose of which I haven't 
>> thought, why can't named anchors be specifically excluded from :hover 
>> and :active?
> 
> Because CSS is markup-language-independent and thus has no concept of a
> "named anchor".  All it knows is that there is a <a> element.  Any other
> semantics are attached to the <a> by the document language, which
> happens to be HTML in this case.
> 
> Keep in mind that CSS is not an adjunct to HTML but an adjunct to
> XML-based markup languages in general.
> 
> Boris

So instead of saying something like named anchors can't have :hover and 
:active states, why not something like invisible and non-structural 
elements cannot have :hover and :active states?

Received on Thursday, 25 July 2002 17:40:08 UTC