Multi-step form markup

Each step is a fieldset with a legend.

HTML · Multi-step form markupAdvanced
<form id="wizard" novalidate>
  <progress value="1" max="3" aria-label="Step 1 of 3"></progress>

  <fieldset>
    <legend>Step 1: Account</legend>
    <label for="w-email">Email</label>
    <input id="w-email" name="email" type="email" required>
    <button type="button" data-next>Next</button>
  </fieldset>

  <fieldset hidden>
    <legend>Step 2: Profile</legend>
    <label for="w-name">Name</label>
    <input id="w-name" name="name" type="text" required>
    <button type="button" data-prev>Back</button>
    <button type="button" data-next>Next</button>
  </fieldset>
</form>
formfieldsetprogresssteps