Tab index exercise bug or am i missing something?

    <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>

so here, I prioritized the search and submit inputs with tabindex as 1 and 2 respectively.
shouldn’t this enable me to focus on them via tab before the three links (home, blog, training)?

i understand that links among some element types are automatically given keyaccess, but aren’t they still a part of the source code order, which should be overridden by positive tab index values?

thanks in advance!!!

Ah! So with the code I provided, what happened was this:
When I tried tabbing through the page, the selector focused on the three anchor elements (in the order they are written) before focusing on the two input elements to which I had given priority with positive tabindex values (1 and 2).

If my question still isn’t clear, then perhaps my understanding of the function of positive tabindex values is incorrect…