How to specify the usage of an element using the tabbing order (tab keyboard button) in HTML?

Use the tabindex attribute in HTML to set the tabbing order of an element. It gives you the authority to change the order of your TAB usage on the keyboard.

You can try to run the following code to create tabbing order of an element in HTML −


Live Demo

<!DOCTYPE html>
      <a href = "" tabindex="1">Current Affairs</a>
      <a href = "" tabindex="2">Coding Ground</a>
      <a href = "" tabindex="4">Verbal Ability</a>
      <a href = "" tabindex="3">Quantitative Aptitude</a>
      <p>We have changed the tab order above. Use TAB on keyboard to view the changes.</p>