Web Accessibility & WCAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
Preventing Keyboard Traps in Complex Embeds.
senior LevelSystem Design
In Simple Words: A Keyboard Trap occurs when focus enters a sub-element (like an embedded video player or third-party ad) and pressing Tab or Esc cannot navigate focus back out.
- Violates WCAG Success Criterion 2.1.2.
- Always provide standard escape instructions (
"Press Esc to return to document").