for attribute for label (HTML4 & HTML5)

Id corresponding to the form or event associated with the element.

Values

(Default Value: no default value)

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 4.0

Examples having uses of html attribute 'for'

2 votes
8k views

JavaScript Required Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example has a required validation on the input box.
0 votes
2k views

HTML5 Keygen

The HTML <keygen> tag is used for generating a key pair. When the control's form is submitted, the private key is stored in the local keystore, and the public key is packaged and sent to the server.
0 votes
2k views

jQuery - Multiple CSS properties

jQuery allows to change the multiple CSS properties value at once.
2 votes
2k views

HTML Input

This HTML element specifies an input control for a form. The type of input is set by the type attribute and can be a variety of different types. (See Advanced HTML for more information about the different input types)
1 votes
2k views

JavaScript Numeric Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example validates numeric characters on the input.
1 votes
1k views

Javascript Email Address Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example validates the input matches a valid e-mail address with a regular expression.
0 votes
1k views

HTML5 Output

Perform a calculation and show the result in an <output> element
0 votes
1k views

JavaScript Alphabetic Character Validation

JavaScript validation are client side scrips that is used to reduce the server load because all validation are check on client browser. This example validates alphabetic characters on the input
0 votes
1k views

CSS enabled & disabled

These are used to apply the properties on the elements that are either enable or disable.
0 votes
1k views

JavaScript Submit Event

This event is fired when the form is submitted. This is only works with the form element of the HTML.
0 votes
1k views

jQuery - Set CSS for an element

jQuery also allows us the set the property value of the CSS.