tabindex attribute

tabindex=numbe

Explanation

Tabindex attribute is used to select the links in a page, just by using "Tab" buuton.
It is applied to set tab values for the navigation links in a webpage.
<input tabindex="number">
Values added with this attribute are:
ValueDescription
NumberTab order of the element.

Example Code:

Result :
  • Use "Tab" button to switch over through the elements and to select it.
  • Use this attribute to set/fix tab order for the links in a page.
It is supported by the entire elements in HTML5 & it exists in the previous versions of the HTML.

Limitations:

It will function in all major browsers, except Safari browser.

Ask Questions

Ask Question