[thelist] post form element information & accessibility.
Gavin Montague
gmontague at gmontague.co.uk
Fri Feb 25 09:07:02 CST 2005
Here's a quickie...
<label> Your name: <input type="text" name="name" /></label>
I've stripped it down for simplicity but I'm sure you get the idea.
Scenario is that the user submits without filling in the field. So
they get the page back with a helpful summary of all error messages
across the top of the page and each specific error message (or a
marker) placed next to the bad field.
My question is: where should the 2nd error message go semantically?
<label> Your Name *error msg* : <input...></label>
<label> Your Name : <input.../>*error msg*</label>
<label> Your Name : <input.../></label>*error msg*
*error msg*<label> Your Name : <input...></label>
Or none of the above? Can the error be considered part of the label?
Certainly it's specifically associated with the the field, but is it,
strictly speaking, a label?
I'm not sure there's a clear cut answer to this. I've not come across
anyone addressing this before.
Gav
More information about the thelist
mailing list