Success Criterion 2.4.6 Headings and Labels: [Level AA]
Techniques
Providing descriptive headings
This technique requires that the various sections of a page are identified by descriptive headings.
<h2>Success Criterion 2.4.6</h2> <h3>Success Criterion 2.4.6 Techniques</h3> <h3>Success Criterion 2.4.6 Failures</h3>
Providing descriptive labels
Where labels are used, they should be be properly descriptive. In a form, the label should correctly identify the field and also identify required fields.
<label for="firstname">First Name (Required)</label><input id="firstname" type="text" /> <label for="lastname">Last Name (Required)</label><input id="lastname" type="text" /> </label>
The assumption could be made that the second name field is the last name but remember screen readers cannot make assumptions they only work with the material provided.
<label for="name">Name (Required)</label><input id="name" type="text" /> <input type="text" /> </label>