input
element with the type="checkbox"
attribute-value pair. HOW CHECKBOXES WORK
SOURCE CODE
My favourite colors are:<br><br>
<input type="checkbox" name="color" value="red">
Red<br>
<input type="checkbox" name="color" value="yellow">
Yellow<br>
<input type="checkbox" name="color" value="blue">
Blue<br>
<input type="checkbox" name="color" value="orange">
Orange<br>
<input type="checkbox" name="color" value="green">
Green<br>
<input type="checkbox" name="color" value="purple">
Purple<br>
value
attribute. When a user selects (checks) a checkbox, its value gets assigned as the current value of the checkbox group's control name. A checkbox group's control name may conceivably get paired with several current values if the user selects more than one checkbox.input
element with the type="radio"
attribute-value pair. HOW RADIO BUTTONS WORK
SOURCE CODE
Your current web browser is:<br><br>
<input type="radio" name="browser" value="IE" checked>
Internet Explorer<br>
<input type="radio" name="browser" value="Mozilla">
Mozilla<br>
<input type="radio" name="browser" value="Opera">
Opera<br>
"browser"
. However each radio button in the group has a different associated value specified by the value
attribute. When a user selects a radio button, its value gets assigned as the current value of the radio button group's control name. Since a selected radio button 'deselects' all other radio buttons within the same group then a radio button group's control name only gets paired with one current value at any one time.checked
attribute. In the above example, the Internet Explorer radio button carries the checked
attribute.
Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates
See also:
If you need a .COM web address, you can get one quick and easy at...
<~ BACK | TOP | NEXT ~> |