Why should positive tabindex values be avoided?

A positive tabindex value places an element into a separate priority order ahead of controls that use the natural document sequence. This creates a fragile focus path that can diverge from both the DOM and the visual layout. Values are processed from the lowest positive number upward before elements with the normal tab order.
Once one positive value is introduced, developers often need to number many other controls to make the page appear coherent. Every new button, validation message or responsive component can then break that manual sequence. Repeated values fall back to source order, and hidden or conditionally rendered controls make maintenance even less predictable.
Positive tabindex also creates practical user problems:
- focus can jump past the page’s first visible controls;
- screen-reader reading order may differ from keyboard order;
- responsive layouts can display controls in a sequence that no longer matches their numbers;
- third-party components may enter the order unexpectedly;
- developers may overlook backward navigation with Shift+Tab.
Use native elements in a logical DOM order and leave them at their default focus behavior. Apply tabindex="0" only when a genuinely custom interactive element belongs in the natural sequence, and tabindex="-1" when an element should receive programmatic focus without becoming a regular Tab stop. Composite widgets usually keep one internal item at zero and the rest at minus one.
If an existing page contains positive values, remove them only after mapping the intended order and correcting the source structure. Test dynamic and responsive states after the change. A natural focus order is easier to understand, easier to maintain and less likely to separate keyboard navigation from the content’s meaning.