[thelist] Help with ID, please, someone?

Techwatcher techwatcher at accesswriters.com
Sat Jun 8 20:07:01 CDT 2002


One of the things I've read, during my recent massive self-re-education
project regarding Web design/XHTML/CSS, is that "ID" must be unique (in
each document). Now, I've interpreted that to mean, practically, that
where I used to use name="#blah" I would now update to:
 name="#blah" id="#blah"

I was thinking that in the DOM, the thing referred to has this unique
label/title/name value, whether I was using the name attribute or the
id attribute to refer to it. So I could keep both attributes, assigning
the same value. Was that correct thinking, or does the rule that "ID
must be unique" actually mean that the value of the attribute ID must
be a unique value in the HTML, for that document?

The reason I ask is I saw that name="foo" id="bar" thing posted
earlier, and wondered why the author did it that way.

Cheers
Carol Stein
techwatcher at accesswriters.com




More information about the thelist mailing list