Re: Error?

On 10 Sep 2015, at 11:04, Jens R. Rasmussen wrote:
>     <td><label for='glemt'>&nbsp;&nbsp;&nbsp;Jeg kan ikke huske mine
> log-indata.</label></td>
>     <td><a id='glemt' href='glemtpassword.asp'>Tryk her for
> hjælp</a>!</td>

>  *Error*: The for attribute of the label element must refer to a
>  non-hidden form control.

> But isn't it correct syntax I have used?

A `<a>` element is not a form control. `<label>`s are for things like `<input>` and `<select>`.


-- 
David Dorward
http://dorward.co.uk/

Received on Thursday, 10 September 2015 21:42:51 UTC