Label
Examples
Web Component
Accessibility
Keyboard Navigation
Key | Function |
---|---|
Tab | Moves focus to the next interactive element. |
Shift + Tab | Moves focus to the previous interactive element. |
Enter ,Space | Activates the associated input when a label is used with interactive elements. |
Esc | Closes any related tooltip or popover if applicable. |
For detailed keyboard interactions, refer to our Keyboard Control Guide.
Visit WebAIM for general keyboard techniques.
Explore live examples in the ARIA Practices Guide.
Resources
- MDN Label Documentation: Learn more about correct label implementation in HTML.
- W3C Label Techniques: Implementation best practices for accessible labels in WCAG.
- WAI-ARIA Tooltip Example: Best practices for popovers and tooltips.
Other recommendations
Find additional accessibility tips in our Accessibility Guide.
WCAG 2.2 Guidelines
- Non-text Content: Ensure all badges conveying information have a text alternative. (Level A)
- Info and Relationships: Maintain semantic structure for screen readers. (Level A)
- Headings and Labels: Ensure badges have meaningful labels. (Level AA)
- Labels or Instructions: Provide clear instructions for dismissible badges. (Level A)
- Name, Role, Value: Define ARIA attributes correctly for badges. (Level A)