|
|
When you use the Tab key, the cursor's movement should follow the structural order of the page elements so the user can select and activate them. It should be possible to use the Tab key to make the cursor jump between form fields, buttons and other controls, links, pop-out menus or more complex interactive features. You specify a tabbing order with the tabindex attribute. These elements support the tabindex attribute: <a>, <area>, <button>, <input>, <object>, <select> and <textarea>. For example, you can set the tabbing order for a form:
<form action="submit" method="post"> Here, anyone who uses the keyboard to navigate will enter their first name before their last name. If you use the tabindex for links, you skip from link to link or even skim over a repetitive opening section of a page without relying upon the mouse. |
More information An overview of the accessibility guidelines Design for device-independence Provide client-side image maps instead of server-side image maps Ensure that any element that has its own interface can be operated in device-independent manner Specify logical event handlers Create a logical tab order |