[whatwg] Errormessages in forms

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

Received on Tuesday, 22 July 2008 00:40:51 UTC