The `focusgroup` HTML attribute is a proposed declarative API that replaces manual roving-tabindex JavaScript for composite widgets like toolbars, tablists, menus, and listboxes. A single attribute handles arrow-key navigation, single Tab stop management, last-focused memory, writing mode/RTL support, and ARIA role inference

14m read timeFrom developer.chrome.com
Post cover image
Table of contents
Try it out and give us your feedbackThe problem: manual roving tabindexThe solution: the focusgroup attributeAPI overviewCommon patternsKey conceptsAccessibilityFeature detectionConclusionLearn more

Sort: