Skip to main content
Home
Back to Guidelines

What is Programmatic Label?

Form controls should have visible labels that clearly describe their purpose.

Form controls should have visible labels that clearly describe their purpose.

  • Keyboard and screen reader users.
  • People who need predictable interactions.
  • Users who benefit from visible focus and clear labels.

Good vs Bad Examples

Use the tabs to compare the accessible pattern with the example to avoid.

Good Example

Form fields with clear visible labels above each input.
html live code
<div />
Why this is correct (developer logic):
  • Provides an accessible and predictable interaction.
  • Works better for keyboard and assistive technology users.
  • Matches the intended WCAG requirement for this page.

Implementation Checklist

Progress0 / 5 completed (0%)

Knowledge Check

Answer Yes or No to test your understanding of programmatic label.

Score: 0 / 3 · Answered: 0 / 3

Does the good example demonstrate programmatic label correctly?

Is the bad example acceptable for programmatic label?

Should this pattern be checked with keyboard and screen reader testing?