Forms people can finish
Give every input a label and help users recover when a submission fails.
An email input with a label and hint
The label names the field. The hint stays visible and has its own association.
<label for="email">Email address</label>
<p id="email-hint">Use the address you check at work.</p>
<input id="email" name="email" type="email"
autocomplete="email" aria-describedby="email-hint"
required>
Pair a label with each control
Give each field a visible label. An HTML label can point to a control by matching its for attribute to the control's id. Put format examples beside the field and connect any essential instructions so a screen reader can locate them. Keep the action at the end of the form easy to recognize and write its label as a verb.
Show a way to recover
Try submitting with a required field empty. The error should explain which field needs attention and how to fix it. Keep the values the user already entered whenever you can. After a successful submission, make the outcome visible and say what the user can do next if an action remains.