<form>
  <fieldset>
    <legend>Gender</legend>
    <div class="control">
      <input id="gender_female" name="gender" type="radio" value="female" /><label for="gender_female">Female</label>
    </div>
    <div class="control">
      <input id="gender_male" name="gender" type="radio" value="male" /><label for="gender_male">Male</label>
    </div>
    <div class="control">
      <input id="gender_nonbinary" name="gender" type="radio" value="nonbinary" /><label for="gender_nonbinary">Non-binary</label>
    <