W3C home > Mailing lists > Public > www-style@w3.org > July 2002

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

From: Tantek Celik <tantek@cs.stanford.edu>
Date: Thu, 25 Jul 2002 15:02:12 -0700
To: Jerry Baker <jerrybaker@attbi.com>, www-style <www-style@w3.org>
Message-ID: <B965C374.125AC%tantek@cs.stanford.edu>

On 7/25/02 2:43 PM, "Jerry Baker" <jerrybaker@attbi.com> wrote:

> Tantek Celik says:
>> So, really what you _should_ do is stop using named anchors, and use the
>> "id" attribute instead directly on the target element (i.e. don't use an
>> unnecessary <a> element at all for the destination of a hyperlink), which is
>> much better structurally than those empty named anchors that litter the web.
> That's a nice way to do it, but how do you address user agents that
> still deal with HTML 3, 4, and XHTML 1.0? There has got to be a way to
> address them.

Using the "id" attribute directly on an element works with HTML4 and XHTML
1.0 already[1][2]. Are you seriously still dealing with HTML3? And
simultaneously with CSS?



Received on Thursday, 25 July 2002 17:54:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:02 UTC