Tell us what’s happening:
- There is any difference between writing the input text next to the input tag and writing it next to the label tag?
1. Input text next to the input tag (Look the outdoor and indoor text next to the input tag)
<label for="indoor">
<input id="indoor"type="radio" name="indoor-outdoor">Indoor
</label>
<label for="outdoor">
<input id="outdoor" type="radio" name="indoor-outdoor">Outdoor
</label>
2. Input text next to the label tag (Look the outdoor and indoor text next to the label tag)
<label for="indoor">Indoor
<input id="indoor"type="radio" name="indoor-outdoor">
</label>
<label for="outdoor">Outdoor
<input id="outdoor" type="radio" name="indoor-outdoor">
</label>
Also if there is a good practice aobut it , I would like to know it
(I’m not talking the good practice about the relations between the attributes ID , FOR and NAME)