U.S. Department of Energy - Energy Efficiency and Renewable Energy
Communication Standards and Guidelines
Forms
This page describes the requirements for coding forms on the EERE Web site. Forms are used to gather information from a user.
All form controls should have text labels adjacent to them and should use the label and id html attributes to associate the text label with the input field.
Example: <label for="SSN">Social Security Number:</label>
<input type=text name="SocSecNum" id="SSN">
or
<label>Date of birth: <input type=text name="DofB"></label>
For more information, see WebAim's article on creating accessible forms.
|