A museum's workshop form has two fields for the person booking and the guest. Both inputs show an email example. When the visitor pastes an address into each, the examples disappear. Give the two fields visible names that remain on screen while the form is filled.
<label for="booking-email">Your email address</label>
<input id="booking-email" name="booking_email" type="email">
<label for="guest-email">Guest email address</label>
<input id="guest-email" name="guest_email" type="email">
Each for value matches a unique id. Try clicking the guest label and check that focus goes to the guest input. Tab through the form from the top. With a screen reader running, focus each control and listen for the two distinct label names. Leave sample values in both fields and repeat the check.
If a label needs a short instruction, such as which address receives the tickets, put that instruction visibly near the field. For a generated guest list, produce a unique ID for each input and connect each label to its own control. Test two guests in the fixture because duplicate IDs may be hard to spot when there is only one.
Keep the labels clear after a failed submission
Enter deliberately invalid values in both fields and trigger your form’s validation. Check that the error state keeps each visible label above or beside the correct control. If your custom validation adds an inline error, give it its own ID and associate it with the input using aria-describedby. Keep the field label available when the error appears.
Now add a second guest. Click the label on the last row and check that it focuses the last field. Then submit again and confirm that the error text helps you tell whose address needs correction.
