Possible duplicate:
Should I put an input tag inside the tag tag?
Is it possible to have an input element inside a label element to associate an input with a label? Example:
<label>Email Address: <input name="email" type="text" /></label>
Will major browsers link the label and untagged input controls for the specified attribute?
I have seen this done several times, but wondered if this is kosher HTML.
source
share