Form fields with only an id
attribute are not submitted at all.
Form fields with only a name
attribute are not linked to their label
.
There are no differences between 'Strict mode' and 'Quirks mode'.
On this page I research serious problems with the id
attribute of a form field.
The problem is that browsers only send form fields that have a name
attribute to the
server. On the other hand, clicking on a label
tag only works if the form field it belongs
to has an id
.
Each form field in the form below has an id
attribute.
Each form field in the form below has a name
attribute.
Therefore if you want to use labels
and submit the form you must use both attributes
for each form field: id
and name
.