HTML 101
Forms (continued)
Using checkbox
es
- Use
label
s - Use
fieldset
s
Example checkbox
es
Code for Example checkbox
es
<fieldset>
<legend>What do you do? (select all that apply)</legend>
<input id="a11y" type="checkbox" name="whatDoYouDo" value="a11y">
<label for="a11y">Accessibility</label>
<input id="devSupport" type="checkbox" name="whatDoYouDo" value="devSupport">
<label for="devSupport">Developer Support</label>
<input id="training" type="checkbox" name="whatDoYouDo" value="training">
<label for="training">Training</label>
<input id="design" type="checkbox" name="whatDoYouDo" value="design">
<label for="design">Design</label>
</fieldset>