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

HTMLWeb DevelopmentFront End Technology

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>
Published on 13-Mar-2018 12:56:21