Answer the question
In order to leave comments, you need to log in
Why can't a div be a child of a label?
Please tell me what is wrong here?
<div class="lfloat half" style="line-height: 40px;">
<label for="remember" class="options_left enh_checkbox chk_container">
<input type="checkbox" name="remember" id="remember" class="inline noborder" tabindex="3"/>
<span>{$lng.remember_me_rormatted}</span>
<div class="chk_indicator"></div>
</label>
</div>
Answer the question
In order to leave comments, you need to log in
Because according to the standard label has a Phrasing content model, and can only contain a certain set of tags (excluding nested label)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question