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?
Tantek
[1]
http://www.w3.org/TR/html401/struct/links.html#h-12.1.1
[2]
http://www.w3.org/TR/xhtml1/Overview.html#h-4.10