[whatwg] Errormessages in forms
Thomas Broyer
t.broyer at gmail.com
Tue Jul 22 00:40:51 PDT 2008
On Mon, Jul 21, 2008 at 10:31 PM, Robert (Jamie) Munro wrote:
> Keryx Web wrote:
>>
>>
>> <label for="myfield">Instructions
>> <strong class="error"> Must be a valid value</strong>
>> </label>
>> <input id="myfield" etc />
>>
>> But presentationwise it should be displayed like this:
>>
>> Instructions [ (input) ] Must be a valid value
>
> [snip]
>
> What's wrong with:
>
> <label for="myfield">Instructions</label>
> <input id="myfield" etc />
> <label for="myfield" class="error"> Must be a valid value</label>
>
> Can an input not have 2 labels?
Or even:
<label>Instructions <input etc> <strong class=error>Must be a valid
value</strong></label>
--
Thomas Broyer
More information about the whatwg
mailing list