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

Error?

From: Jens R. Rasmussen <jens.r.rasmussen20@gmail.com>
Date: Thu, 10 Sep 2015 12:04:37 +0200
Message-ID: <CA+xQm3mM5hww6Uw2jMQN9wPjEkAqXvfc66HMKL6sXQLesuxYcw@mail.gmail.com>
To: www-validator@w3.org
I'm got an error message for using the label together with an <a>

<tr>
      <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>
</tr>

The error message says

   1.

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

   From line 71, column 17; to line 71, column 35

   <td>*<label for='glemt'>*&nbsp;


But isn't it correct syntax I have used?

best regards

Jens

Jens.R.rasmussen@tvegaard.dk
Received on Thursday, 10 September 2015 21:35:56 UTC

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