When I click on the "label 1" label, the browser should highlight the text field next to it. To do this, make sure the "for" attribute of the <label> tag is equal to the same word as the "id" attribute of the corresponding <input> tag. And make sure those words have no spaces, capital letters, or special characters.
When I click on the "label 1" label, the browser should highlight the text field next to it. To do this, make sure the "for" attribute of the <label> tag is equal to the same word as the "id" attribute of the corresponding <input> tag. And make sure those words have no spaces, capital letters, or special characters.
ReplyDeleteFor example:
<label for="some_id">click me</label>
<input id="some_id" type="text" />