W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

LABEL tag with "for" attribute not validated

From: Sorin Lazareanu <Sorin.Lazareanu@nondimensional.com>
Date: Tue, 14 May 2002 19:26:19 -0400 (EDT)
Message-ID: <000e01c1fb9e$3c74d9e0$be00a8c0@GAMMA>
To: <www-validator@w3.org>
Hi,

The validator is a very useful tool to me.

It seems that a tag of the form:

<LABEL for="abc">Text</LABEL>

is not validated by the HTML validator.  The error description is: X.

Here is an HTML source document:

<!DOCTYPE html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
  <HEAD>
    <TITLE>Test</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  </HEAD>
  <BODY>
    <FORM action="null">
      <DIV>
      <LABEL for="test">Test</LABEL>
      <INPUT type="text" name="test">
      </DIV>
    </FORM>
    <DIV>
        <A href="http://validator.w3.org/check/referer">HTML 4.01 Check</A>
    </DIV>
  </BODY>
</HTML>


Best regards,

Sorin
Received on Friday, 17 May 2002 02:52:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT