Fieldsets and Legends

Use the fieldset element (<fieldset>...</fieldset>) to group form data areas together!

The legend element (<legend>...</legend>) comes directly after the fieldset element tag. The caption should help identify the purpose of this form group.

Most browsers will display these groups with a line around the edge. This presentation of this grouping can be altered with CSS and also helps clarify data groups to users.