Form Structure Elements

code
<form>
Formally defines a form and its behavior
Container for all form elements
Attributes: action, method, enctype
dashboard
<fieldset>
Groups related form controls
Improves accessibility and structure
Essential for radio buttons and checkboxes
label
<legend>
Provides a caption for fieldset
Screen readers announce legend before each control
Must be first child of fieldset element
info Proper structure ensures forms are both usable and accessible
HTML form structure showing fieldset and legend elements