Grouped Choices and Form Actions

Use fieldsets and legends when several controls answer one question.

One question, one named group

Required: choose one contact method.

Preferred contact method
Optional updates

Button types are behavior, not decoration

submit sends the form. reset restores initial values and should be offered only when accidental clearing is unlikely to cause harm. A future scripted action would use type="button".

Important HTML

Fieldset and legend name a group of related controls that answer one question.

<fieldset>
  <legend>Preferred contact method</legend>
  <input id="contact-email" name="contactMethod" type="radio" value="email" required>
  <label for="contact-email">Email</label>
  …
</fieldset>