Skip navigation

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: