Answer the question
In order to leave comments, you need to log in
Does the association between label and input affect SEO/semantics?
Good day.
Is it worth additionally binding label and input using the for attribute and, accordingly, id? Would there be any difference compared to having the label and input separate from each other in a regular div? Code examples:
<div>
<label>Label</label>
<input />
</div>
<div> <!-- Вариант со связыванием, "правильный" -->
<label for="input1">Label</label>
<input id="input1" />
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question