input checkbox
TML input checkbox Element
Setting the HTML input element's type attribute to "checkbox" will render a component that allows users of your web <form> to toggle a choice or option box.
Value: "checkbox"
name - specify the input's name that your form parsing script will access
Possible Values: "short descriptive name"
checked - specify that the input be checked by default
Possible Values: "checked"
value - specify the checkbox's value that your form parsing script will access
Possible Values: "a string"
disabled - specify that the input be disabled
Possible Values: "disabled"
global attributes - global core attributesSee: list of global attributes
Possible Values: "required"
form - set a relationship between the input and a form
Possible Values: "a form's id attribute value"
autofocus - specify that the input receive focus when page is loaded
Possible Values: "autofocus"
HTML CODE EXAMPLE
<input name="cb" id="cb" type="checkbox" value="signup">
<label for="cb">Sign up for our newsletter</label>
<label for="cb">Sign up for our newsletter</label>
Attributes for this element:
type - specify the type of inputValue: "checkbox"
name - specify the input's name that your form parsing script will access
Possible Values: "short descriptive name"
checked - specify that the input be checked by default
Possible Values: "checked"
value - specify the checkbox's value that your form parsing script will access
Possible Values: "a string"
disabled - specify that the input be disabled
Possible Values: "disabled"
global attributes - global core attributesSee: list of global attributes
New HTML5 attributes for this element:(applies 2014)
required - specify that the input is a required form fieldPossible Values: "required"
form - set a relationship between the input and a form
Possible Values: "a form's id attribute value"
autofocus - specify that the input receive focus when page is loaded
Possible Values: "autofocus"
0 Response to " input checkbox"
Post a Comment