On 16/04/07, Nick Fitzsimons <[EMAIL PROTECTED]> wrote:
Name and ID serve two different purposes. ID is used to identify the
element's node in the document [1]. Name is used to identify the
element's value in the form submission posted back to the server [2].

OTOH, according to the HTML 4.01 Strict DTD, "name" is #IMPLIED, not
#REQUIRED, so the book is incorrect. [3]

The book is correct. It's a question of HTML having rules that DTD
can't represent. In this case, that input elements can be form
controls or form functionality (i.e. type attribute has a value of
submit or reset). The name attribute is required on form controls but
not on form functionality. The DTD format doesn't allow this type of
granularity however.

In other words, just because something is valid according to the HTML
DTD doesn't mean it's valid according to the HTML specification.
--
David "liorean" Andersson


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to