Global tabindex Attribute - HTML CSS HTML Global Attribute

HTML CSS examples for HTML Global Attribute:tabindex

Description

The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating).

Attribute Values

Value Description
number Specifies the tabbing order of the element (1 is first)

The following code shows how to create Links with a specified tab order:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<a href="http://java2s.com" tabindex="2">java2s.com</a><br>
<a href="http://www.google.com/" tabindex="1">Google</a><br>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>

</body><!--  w  w  w .  j  a  va 2 s  .  c om-->
</html>

Related Tutorials