Tab index exercise bug or am i missing something?

<body>
  <header>
    <h1>Even Deeper Thoughts with Master Camper Cat</h1>
    <nav>
      <ul>
        <li><a href="">Home</a></li>
        <li><a href="">Blog</a></li>
        <li><a href="">Training</a></li>
      </ul>
    </nav>
  </header>
  <form>
    <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">
    
    
  </form>
  <h2>Inspirational Quotes</h2>
  <blockquote>
    <p>&ldquo;There's no Theory of Evolution, just a list of creatures I've allowed to live.&rdquo;<br>
    - Chuck Norris</p>
  </blockquote>
  <blockquote>
    <p>&ldquo;Wise men say forgiveness is divine, but never pay full price for late pizza.&rdquo;<br>
    - TMNT</p>
  </blockquote>
  <footer>&copy; 2018 Camper Cat</footer>
</body>

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

You can try adding tabindex="-1" to the anchor elements if you do not want those links to be accessible via tabbing, but I am not sure that is what you are wanting.

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…