why use the label for attribute html code example
Example 1: how to use the label tag in html
<label for="id_of_what_you're_labeling"></label>
<!-- for example-->
<label for="username"></label>
<input type="text" id="username">
Example 2: label for attribute
<label for="username">Click me</label>
<input type="text" id="username">