Skip to content

Focus map ordering

This example wires a deterministic tab order across several controls while leaving the rest of the page reachable. Press Tab on the anchor to move into the mapped buttons and then Tab from the final button to continue beyond the pattern—there is no enforced loop.

Focus map demo

Custom tab order with a natural exit.

View source

Focus anchor

Continue beyond the map

By default, Tab from the anchor jumps into the sequenced buttons, Shift+Tab from the first button returns to the anchor, and Tab from the final button lands on the “Continue beyond the map” link. The focus map never traps or loops so the next focusable element stays reachable.