Skip navigation

Tag Archives: form


The for attribute in the label tag, indicates the ID of the form field it identifies.
Each form field should have name and id equal to the same value (name is submitted to the server; id identifies the element on the client).

The W3C recommendations prefer that form controls use their id attributes in the name/value pairs submitted to server however only the name attributes is recognized so better use it.

I posted here because few like me may miss it to note.

Advertisements