Thierry Koblentz wrote:
Rev. Kalle Räisänen wrote:
Thierry Koblentz wrote:
Minh D. Tran wrote:
oh duh! why didn't i think of that. Thanks!
Actually, I believe you should use both (id *and* name).
Not in XHTML 1.1, where name doesn't exist. And it's deprecated in
XHTML
1.0, so you shouldn't use it there either.

I know the validator would complain about the name attribute in applet,
form, img elements etc. but as far as I know there is no issue with A
elements.
I use "name" all the time with my jump links because I consider this "best
practice" as it offers better browser compatibility and "richer" anchor
names. And my pages *validate* XHTML 1.0 Strict.

Yes, the name attribute is deprecated in XHTML 1.0, not removed. It is, however, removed in XHTML 1.1. Deprecation is enough to make me avoid something.

I'll give you a point on better backwards (though not forwards) compatibility, but why would name attributes offer "richer" anchor names? What does name give you that id doesn't?

        // Kalle Räisänen

--
We have become so accustomed to our illusions that we mistake them
for reality. We demand them. And we demand that there always be more of
them, bigger and better and more vivid.
        -- Daniel Boorstin, The Image.


******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to