U.S. Department of Energy - Energy Efficiency and Renewable Energy
EERE Communication Standards & Guidelines
This page describes the requirements for coding forms on the EERE Web site. Forms are used to gather information from a user.
To meet Section 508 requirements, all form fields must have text labels associated with them using appropriate markup—including the label element and the id and for attributes. For example, a field may be coded like this:
<label for="SSN">Social Security Number:</label>
<input type=text name="SocSecNum" id="SSN">
<label>Date of birth: <input type=text name="DofB"></label>
For more information, see WebAim's article on creating accessible forms.