The Checkbox Element
Checkboxes (type="checkbox"
) allow users to select (or deselect) zero, one, or more options.
name (Required)
When grouping checkboxes, as with radio buttons, the name=""
attribute should be the same for each element option.
value (Required)
Likewise, the value=""
should be unique to each element.
checked (Optional)
As with radio buttons, you can use the checked
attrubite to pre-select checkboxes.
HTML
<p>Services Utilized:</p>
<input type="checkbox" name="service" value="lab" /> Computer Lab
<br />
<input type="checkbox" name="service" value="library" /> Library
<br />
<input type="checkbox" name="service" value="online" checked /> Moodle / Online Resources
<br />
<input type="checkbox" name="service" value="recreation" /> Gym or Rec Center
Please Select:
Registration Type:
On CampusDistance-Only
Admission Level:
NondegreeUndergraduate
Graduate
Other:
Services Utilized
Computer LabLibrary
Moodle / Online Resources
Gym or Rec Center
NOTE: Displayed text should appear AFTER each checkbox element.
- Previous
- Next