Whats the proper tab order for invalid inputs? <p>For accessibility reasons, the first invalid input in a form ought to be focused upon form submission. This prevents the non-sighted user from being forced to hunt for the invalid inputs.</p> <p>My question pertains to tab order. After the first invalid input is focused, when the user clicks tab again, should the focus go to the next invalid input or just the next element in the normal tab order?</p> <p>Take this pseudo code for example. If input numbers 2 and 4 have errors, when the form is submitted then focus will be moved to input number 2. The next time the user presses the <code>tab</code> key does the focus go to input 3 or 4?</p> <pre><code>&lt;input id="1"&gt; &lt;input id="2"&gt; &lt;-- invalid &lt;input id="3"&gt; &lt;input id="4"&gt; &lt;-- invalid &lt;input id="5"&gt; &lt;button type="submit"&gt; </code></pre>