The label tag supports clicking focus on the input element, where the id attribute is equal to for methods. If you have, for example, a flag can also be selected by clicking on the label.
Example:
<input type="checkbox" value="1" id="myCheckbox"/>
source share