Using the fieldset and legend elements
You should use the
- You have a single multiple choice question (using radio buttons or checkboxes).
- You have several questions relating to the same topic (like text boxes, or any other type of field).
You should not use the
- You have a single form field that asks for a single piece of information.