Check boxes are used when you want to let the visitor select one or more options from a set of alternatives. If only one option is to be selected at a time you should use radio buttons instead.
Below is a listing of valid settings for check boxes:
|
The name setting adds an internal name to the field so the program that handles the form can identify the fields.
The value setting defines what will be submitted if checked.
The align setting defines how the field is aligned.
Valid entries are: TOP, MIDDLE, BOTTOM, RIGHT, LEFT, TEXTTOP, BASELINE, ABSMIDDLE, ABSBOTTOM.
The alignments are explained in the image section. You can learn about the different alignments here.
The tabindex setting defines in which order the different fields should be activated when the visitor clicks the tab key.
Look at this HTML example:
|
And the resulting output from it:
|
![]()
Source: echoecho.com