Hi there! According to the task, I need to create a set of radio buttons. There is a result:
<input id=“cat” type=“radio” name=“cat-dog”>Cat
<input id=“dog” type=“radio” name=“cat-dog”>Dog
The problem is that I totally cannot understand why <label for=“cat”> is used here. Even if I delete the label element, the buttons work anyway. So, why is necessary? Where does it lead?