Mary had a little form, and its fields where labeled just so.
Whenever an error crept in, confusion it would sow.
I’ve got a label for each input field… pretty standard affair.
After validating the form, I’m displaying a helpful little paragraph at the top of the form detailing what information is missing or incorrect.
Can I have two labels for the same input field? One in the form proper, and one in the validation reminder text? Is there any reason I shouldn’t do this?
I assume this question is about HTML forms. From the specification:
Thus, each form control can be referenced by multiple labels, but each label can only reference one control. So if it makes sense to have a second label for a control (and in the situation you describe, it does) feel free to add a second label.