Use tabindex to Specify the Order of Keyboard Focus for Several Elements

Tell us what’s happening:
I’m using Safari on Mac.

When I press tab the 1st time, it jumps to the search box. But when I press tab the 2nd time, it jumps to the address bar of Safari. Has anyone experience this issue with Safari?

On Chrome, if I click the test ouput result window, then start pressing tab, it goes in the correct order.

Your code so far

    <h1>Even Deeper Thoughts with Master Camper Cat</h1>
        <li><a href="">Home</a></li>
        <li><a href="">Blog</a></li>
        <li><a href="">Training</a></li>
    <label for="search">Search:</label>
    <input tabindex="1" type="search" name="search" id="search">
    <input tabindex="2" type="submit" name="submit" value="Submit" id="submit">
  <h2>Inspirational Quotes</h2>
    <p>&ldquo;There's no Theory of Evolution, just a list of creatures I've allowed to live.&rdquo;<br>
    - Chuck Norris</p>
    <p>&ldquo;Wise men say forgiveness is divine, but never pay full price for late pizza.&rdquo;<br>
    - TMNT</p>
  <footer>&copy; 2018 Camper Cat</footer>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15.

Link to the challenge:

safari is known to have problems with the testing suite. stick with chrome in order to have everything work as intended.

1 Like