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 automatically. The API accepts behavior tokens (toolbar, tablist, radiogroup, listbox, menu, menubar) plus optional modifiers (inline, block, wrap, nomemory). It supports nested focusgroups, shadow DOM, deep descendant discovery, and integrates with the CSS reading-flow property. Currently available behind a flag in Chromium browsers and via an origin trial, the Chrome team is requesting developer feedback on the API shape before it ships.
Table of contents
Try it out and give us your feedbackThe problem: manual roving tabindexThe solution: the focusgroup attributeAPI overviewCommon patternsKey conceptsAccessibilityFeature detectionConclusionLearn moreSort: