Skip to content
Accessibility·Advanced·Conceptual·1 min read

What is the difference between aria-label and visible text content for naming a control?

Short interview answer

aria-label supplies an accessible name directly as a string when no suitable visible text exists, while visible text content is both seen by sighted users and used as the accessible name — aria-label should not be used to override visible text with different wording, since that creates a mismatch.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to ARIA widget patterns and color contrast

Related questions