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
Written by Teddy Zetterlund
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Keyboard
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#