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 helps identify the purpose of the form group.
Most browsers display these groups with a line around the edge. This presentation of this grouping can be altered with CSS and also help clarify data groups to users.
- Previous
- Next