Rule: 1.1.2 - All INPUT elements are required to contain the alt attribute or use a LABEL.
Failure - INPUT Element, of Type TEXT, found at Line: 17, Column: 79
However the only code on that line is:
Code:
<div><label for="thename">Please select a name to be referred to by: </label><input type="text" name="uname" />
Any clues as to why it seems to believe there is no label there?
Oh and also, what are you supposed to do with a hidden input? It'd seem very stupid to put a label for a hidden input because as far as I can see it'd do exactly the opposite of what these guideline are intended for and simply confuse users by giving a label for an apparently non-existent form element.
Oh yeah. I forgot to give the input the id of "thename" too.
D'oh!!
That was driving me mad.
Any ideas on the labels for hidden input though? It says labels for all input tags, but like I said, I think giving labels for hidden inputs would cause more problems than it would solve (if there would be any to solve at all).
Bookmarks