What does “for” attribute do in an HTML tag?
The <label> tag allows you to click on the label, and it will be treated like clicking on the associated input element. There are two ways to create this association: One way is to wrap the label element around the input element: <label>Input here: <input type=”text” name=”theinput” id=’theinput’> </label> The other way is to use … Read more