Label” elements should not contain an input element¶
Severity code: Severe error
Label elements should not contain an <code>input element as well.
Example¶
Wrong¶
<label for="first_name">First name: <input type="text" id="first_name" name="first_name"/></label>
Right¶
<label for="first_name">First name: </label><input type="text" id="first_name" name="first_name"/>