Create a html file that builds a radio-button form. Diagram 1 in
the below table (i.e., the form labeled with "1"), shows the form
in its initial size on my machine, and diagram 2 (i.e., the diagram
labeled with "2"), shows a re-sized version of this form. The initial
size of your form will depend on the width of your browser, so it
may be that your initial form will have either fewer or more rows
than my form.
Notice that when you re-size the window, the number of radio buttons
per line may change to fit the available space, but they never flow under
the "Number of Dependents" label. The situation in the third diagram,
where the "3" is separated from its radio button, should never occur,
unless your browser window gets so narrow that the browser cannot display
even a single radio button group on the same line.
You will need to use a CSS stylesheet
to do the visual formatting. The structural
characteristics of the form are as follows:
- Helvetica should be the font you use.
- 2 is the default selection
- The textbox widget and the other radio button should appear
together (i.e., as one inseparable group). If the browser window
gets so narrow that the group is forced onto its own line, and then
gets even narrower so that the whole group no longer fits on the
line, then it is okay if the browser breaks the group.
- The submit button uses the get method for posting. You can
use "foo.php" as the name of your script, even though it will not
The visual formatting characteristics are as follows:
- The "Number of Dependents" label should be given a width of 180
- There should be a 50 pixel separation between radio button groups
(a group is a radio button and its label) and
a 20 pixel separation between each radio button and its label.
- There should be a 20 pixel separation between the submit and reset
buttons and a 10 pixel vertical separation between the radio buttons
and the submit/reset group (this vertical separation should be in
addition to any vertical separation provided by the browser).
- The submit/reset group should always appear below the block of radio