You are here:

  1. Manual
  2. Development
  3. Forms
  4. Keyboard navigation

Forms: Forms and keyboard navigation

As on links, the tabindex attribute can be used on input fields. The web developer can use this to influence the order in which a visitor navigates the content of the form through the keyboard (the tab key).

Examples of the tabindex attribute on an input field (HTML)

<input type="text" tabindex="4" ...>

Use the tabindex attribute as little as possible: the order of the input fields in the HTML source code determines the standard tab order. This order is usually adequate. Use the tabindex attribute only to deviate from this standard order. See also Using the tabindex attribute.

Use the tabindex attribute to deviate from the standard tab order on form fields if this order is inadequate for correct use of the form by keyboard users.

Guideline R-pd.13.2


Web Guidelines version 1.3, November 2007.