Web Accessibility I
Text and Images from Slide
(n) Accessible Forms
- Push buttons: add "value" attribute
- <input type="submit" value="Submit This Form">
- Image buttons: add "alt" attribute
- <input type="image" name="Go" src="go.gif" alt="Go">
- Text Entry Fields:
- Add "id" attribute and value to <input> tag
- Add <label> tag before a text field
- Add "for" attribute and value to <label> tag; set to "id" value of <input> tag
- Example:<br /><label for="firstname">First Name:</label><input type="text" id="firstname" name="fn" size=20>
Lecture Notes