title: validating HTML: The for attribute of the label element must refer to a form control
body: <p>I don't know why I keep getting this error while checking my page at <a href="http://validator.w3.org/check" rel="nofollow noreferrer">http://validator.w3.org/check</a> The error was:</p>
  
  <pre><code>Line 235, Column 84: The for attribute of the label element must refer to a form control.
  … &lt;label for="name" style="line-height:24px;"&gt;Your Name&lt;/label&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;
  </code></pre>
  
  <p>here is my actual code</p>
  
  <pre><code>&lt;div&gt;&amp;nbsp;&amp;nbsp;
    &lt;label for="name" style="line-height:24px;"&gt;Your Name&lt;/label&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;
    &lt;input class="css_form_namefield TooltipIstok " type="text" name="name" value="" style="width: 554px;" maxlength="50" &gt;
  &lt;/div&gt;
  </code></pre>