HTML Forms: Checkboxes
INPUT tags of TYPE="checkbox"
are best used to select members of small sets.
<Form ACTION="test.cgi">
<table border=2>
<tr>
<th align=right>
<INPUT TYPE = "checkbox"
NAME = "group"
VALUE = "Title" Checked>
Title
</th>
<th align=center>
<INPUT TYPE = "checkbox"
NAME = "group"
VALUE = "Description">
Description
</th>
<th align=left>
<INPUT TYPE = "checkbox"
NAME = "group"
VALUE = "URL">
URL
</th>
</tr>
</table>
</form>
-
NAME
-
VALUE
- Specifies the value of the option to be sent to the server.
- If not defined, a value of "on" is sent to the server.
-
CHECKED
- This tag defaults to a checkbox to be selected.
- Decide whether the label goes to the left or the right, and stick to
that convention.
- Ensure that for checkboxes in the midst of several, it's clear which
checkbox the label refers to, by means of some visual cue such as
colon after the label, or a comma between label/checkboxes,
or by placing in a bordered table.
- If you have many, it may help to arrange them in preformatted columns.
- You can emulate a
SELECT MULTIPLE list by having
CHECKBOXESwith the same NAME
but different VALUES.
|