label and for code example
Example 1: label for attribute
<label for="username">Click me</label>
<input type="text" id="username">
Example 2: label in loop
label in loop
<label for="username">Click me</label>
<input type="text" id="username">
label in loop