Best practice question about labels and inputs

Hi, I’m doing the new responsive web course and I have the following question about “best practice link element”:

  • It’s really necessary to link the labels to the inputs (using for=“input-id” attribute) if the input is nested inside the label? It’s not the association implicit on the code because of the input its inside the label?

Thanks

It’s not really necessary to link the labels to the inputs (using for=“input-id” ) if the input is nested inside the label.
Either of the two practices can be used. But in HTML5, the practice of linking labels to inputs with for attribute is more commonly used.