Example of Text Field with Label
This page contains an example of techniques described in Part 2 of the Basic Web Accessibility Tutorial. If you have reached this page without reviewing the Basic Web Accessibility Tutorial, you may do better to start there.
HTML markup of the above example:
<label for="fname">First name:</label>
<input type="text" name="firstname" id="fname">
Notice in the above example that the <input> element has an id attribute that exactly matches the for attribute of its <label> element.
