First page Back Continue Last page Image
The <label> tag
- The label tag allows you to associate a label with an input tag.
- <input type=“text” name=“userLastName” id=“userLastName”>
- <label for=“userLastName”> Enter your last name </label>
- The name and id properties do not have to be the same, however most developers will make them the same to keep the code simple