input checkbox

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.
HTML CODE EXAMPLE
<input name="cb" id="cb" type="checkbox" value="signup">
<label for="cb">Sign up for our newsletter</label>
 
 

Attributes for this element:

type - specify the type of input
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

New HTML5 attributes for this element:(applies 2014)

required - specify that the input is a required form field
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"


Event handlers for this element:

global event handlers - global event handler attributesSee: list of global event handlers

0 Response to " input checkbox"

Post a Comment