Posted by Steve Pugh on 11/16/03 11:39
APT wrote:
> <marcwentink@hotmail.com> wrote in message
> news:1139393803.768820.89090@g14g2000cwa.googlegroups.com...
> >I am checking html against:
> >
> > http://validator.w3.org/check
> >
> > and it seems to complain about:
> >
> > <td class="stctd" name=tdbsgroep id=tdbsgroep>
> >
> > "Line 659 column 34: there is no attribute "NAME"."
> >
> > is that correct, td does not have an attribute name?
> >
> > I see this all over the place in the old code I am changing.
> > (Which not necesarelly means this is correct of course.)
> >
>
> It may be confused
No it's not confused.
> that the "name" and "id" are the same.
On some elements they have to be the same. On other elements they may
or may not be the same. There is no element in HTML where name and id
must be different.
> Both names and IDs
> should have unique names that are only used once per document.
Ids must be unique within the document, but there are cases where name
can be the repeated.
> Try changing the ID name and see if the error is still there.
It will be. The problem is with the name attribute itself, not with its
value.
Steve
Navigation:
[Reply to this message]
|