W3C home > Mailing lists > Public > www-validator@w3.org > September 2015

Re: Error?

From: David Dorward <david@dorward.me.uk>
Date: Thu, 10 Sep 2015 22:42:09 +0100
To: "Jens R. Rasmussen" <jens.r.rasmussen20@gmail.com>
Cc: www-validator@w3.org
Message-ID: <36F19B96-CE01-448E-BEBE-DDFC61C7D398@dorward.me.uk>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:13 UTC