Last Updated: February 25, 2016
·
271
· teddyzetterlund

Avoid tab index, unless you're sure you know what you're doing.

If the default tab order is not logical, fix your source code order.

  • tabindex="1+" defines an explicit tab order.
  • tabindex="0" allows things besides links and form elements to receive keyboard focus.
  • tabindex="-1" allows things besides links and form elements to receive programmatic focus (by scripting, links, etc.).

More on this in Jared Smith's presentation on Keyboard and Interaction Accessibility Techniques