Focus Management
Also known as: Focus Control, Programmatic Focus
The practice of controlling which element on a web page or application receives keyboard focus, and ensuring that focus moves in a logical and predictable manner as users interact with the interface. Focus management is one of the most challenging aspects of web accessibility implementation, as evidenced by its prominence in developer discussions on Stack Overflow. It involves setting initial focus when pages or dialogs load, moving focus appropriately when content changes dynamically (such as opening a modal or updating a single-page application view), returning focus to a sensible location when elements are removed, and ensuring focus is never lost or trapped. Poor focus management can leave keyboard and screen reader users stranded on a page with no way to reach interactive content.
Category: Web Accessibility · Web Development · Interaction Design
Related: Focus Order · Keyboard Trap · ARIA · Screen Reader · WCAG