What's the different ? please help

Hi. guys. I am newbie here. can anyone help me figure out what’s the different between those 3 code in HTML ? I always try to use more solution for one question, but I guest I just confuse myself too much. pls help. Thanks a lot.

image

the difference is that the input elements have an id attribute and the label elements a for attribute

id attributes are used to give a unique way to identify an element, can be applied to any element

for attributes are for label elements and their function is to link a label to an input element even if the input is not nested in the label, and to do so the for attribute should have the same value of the id attribute on the input element

Thank you for help me out. Ieahleen