HTML CSS examples for HTML Global Attribute:tabindex
The tabindex attribute specifies the tab order of an element (when the "tab" button is used for navigating).
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:
<!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>