How to use Tabindex Attribute in Html5

In this article I am going to explain about tabindex attribute.
  • 2504

Tabindex Attribute in HTML5

Tabindex attribute use for defined tab order for an element. After defined tabindex we can navigate across element by using tab button. Element will be selected according to index number.

Browser that supports tabindex attribute.

Internet explorer, Mozilla firefox, Google chrome and opera .

Syntax

<ElementName Tabindex="index number">

Example

<html>

<body>

    <p>

        Use tab button for navigate</p>

    <a href="http://https://dotnetheaven.com//" tabindex="1">dotnetheaven.com</a><br/>

    <a href="http://www.yahoo.com/" tabindex="3">Yahoo.com</a><br />

    <a href="http://http://www.c-sharpcorner.com//" tabindex="2">csharpcorner.com</a>

</body>

</html>

Output

tabindex.jpg

Further Readings

You may also want to read these related articles: here
Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

 

© 2020 DotNetHeaven. All rights reserved.