Is there a best practice concerning the nesting of label and input HTML elements?
label
input
classic way:
Referring to the WHATWG (Writing a form's user interface) it is not wrong to put the input field inside the label. This saves you code because the for attribute from the label is no longer needed.
for