Skip to content
Clairos Learn

Forms and validation · Lesson 5 of 10 · 7 minutes

Forms and validation: Help text relationships

aria-describedby associates a control with help text identified by an existing element id.

Mastery 0/3Run itExplain itApply it
Web workshopInert preview · code inspection

Current edit

PreviewNo external resources

Understand the pattern

aria-describedby associates a control with help text identified by an existing element id.

aria-describedby associates a control with help text identified by an existing element id.

Misconceptions to reject

  • A visual appearance alone guarantees the intended HTML meaning.
  • Replacing semantic elements with generic divs automatically improves accessibility.

The preview is a sanitized subset, not a full browser compatibility test.

Worked example and expected result
<label for="name">Display name</label><input id="name" aria-describedby="name-help"><p id="name-help">Use a name you are comfortable sharing.</p>

aria-describedby associates a control with help text identified by an existing element id.

Try a variation

Adapt the final example to a different project name while retaining its structure and relationships. A different context still needs a real browser and accessibility check.

Explain it

Which statement correctly explains help text relationships?

Apply it elsewhere

You reuse help text relationships in a different project. What must still be verified?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Forms and validation: Error messagesTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Forms and validation: Required fieldsrequired participates in native constraint validation; identify the requirement in visible copy too.Practice
  2. 02Forms and validation: Error messagesAn error needs both a specific explanation and a programmatic relationship to the invalid control.Practice
  3. 03Forms and validation: Input descriptionsA placeholder is not a replacement for a visible label or persistent help text.Practice