/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: tabindex

[this page | pdf | back links]

The HTML tabindex attribute indicates the tab order of an element, i.e. the order in which the user is taken between elements when pressing the tab key (1 is first element).

 

In HTML 5 this attribute can be applied to any element.

 

Valid attribute values include:

 

Value

Description

integer

Tab order

 

EXAMPLE:


HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
Step through the entries using the TAB key<br><br>
<a href="http://www.nematrian.com/Introduction.aspx" tabindex="2">Website Introduction</a><br>
<a href="http://www.nematrian.com/HTMLCSSJSTutorial.aspx" tabindex="1">HTML/CSS/JavaScript Tutorial</a><br><br>

</body>			
</html>


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile