Worked example: Give the email field a clear name
This fictional example shows how to document one accessibility issue. It is not evidence from a client website or a completed screen reader test.
The practice task
A visitor wants to register for the fictional Cedar Garden Workshop. The form asks for an email address and provides a “Register” button.
Compare the two versions
Before: The visible instruction sits above the field, but the code does not connect the words to the input.
<p>Email address</p>
<input type="email" id="email" name="email">
<button type="submit">Register</button>
After: A visible label is connected to the field
through matching for and id values.
<label for="email">Email address</label>
<input type="email" id="email" name="email" autocomplete="email">
<button type="submit">Register</button>
The label association fixes the accessible-name problem in this
example. autocomplete="email" is a separate improvement
that identifies the input purpose; it does not replace the label.
Example finding
Title: Email field has no programmatic label.
Location: Cedar Garden Workshop registration form, email field in the before-code example above.
Status: Confirmed by inspection of the example code. Live keyboard and screen reader results must be added only after testing.
Steps to reproduce:
- Review the fictional “Before” form markup shown above.
- If you are using an authorized running copy of the example, use Tab to reach the email field and record whether focus is visible.
- Inspect the input’s accessible name using the browser’s accessibility tools. In the example code above, no label or other accessible-name source is provided.
- If you use NVDA, return focus to the practice page and navigate to the field. Record the exact speech or Speech Viewer output and your browser/NVDA versions. Do not copy an expected announcement as if you heard it.
Expected result: The field has the accessible name “Email address,” matching its visible label. A screen reader can identify what information belongs in it.
Observed in the example source: “Email address” is a paragraph. It is not associated with the input, and the input has no alternative accessible-name source.
User impact: Someone moving directly between form controls with a screen reader may not know what information the field requests. Nearby visible words do not reliably provide that information through the field’s programmatic name.
Suggested fix: Replace the paragraph with a visible
label. Set its for value to the input’s unique
id. Keep the label visible when the visitor enters text. Do
not use placeholder text as the only label.
Relevant requirement: WCAG 2.2, Success Criterion 4.1.2, Name, Role, Value, Level A. The label association also relates to 1.3.1, Info and Relationships. Check each applicable criterion separately rather than treating their requirements as interchangeable.
Evidence to attach: The relevant source or accessibility-tree result, plus a screenshot with a written description of the field and its visible instruction. Add exact screen reader output only if you performed that test. A screenshot alone cannot establish the accessible name.
Retest after the fix
- If you’ve built a running practice copy, apply the corrected markup, open it from the same starting state and record your setup.
- Inspect the input. Confirm its accessible name is “Email address” and the label association resolves to this input, not a duplicate ID.
- Reach the field by keyboard. Confirm visible focus and that the field accepts input.
- With a screen reader, check that the field’s name includes “Email address.” Record the actual output. The role and announcement order can vary with settings.
- Activate the visible label and confirm it focuses the input. Confirm the label remains visible after typing.
- Complete the practice task and check validation or confirmation feedback separately. A corrected label does not prove the entire form is accessible.
Close the finding when: The accessible name is present, the label remains visible, and the relevant interaction checks pass. If a test could not be performed, record that limit rather than marking it passed.
If you are using the read-through path
Label your submission “sample analysis.” Explain the difference between the two code examples, who benefits, and how you would retest. Do not claim you ran NVDA or tested a browser.
References
- W3C: Understanding Name, Role, Value
- W3C: Understanding Info and Relationships
- W3C Forms Tutorial: Labeling Controls
© 2026 Angela Plank · Desert Bloom Accessibility