mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-11-16 00:38:26 +01:00
added trick tabIndex with html link
This commit is contained in:
parent
9988da9174
commit
785d8c8466
2 changed files with 31 additions and 0 deletions
26
Tab-indexing/index.html
Normal file
26
Tab-indexing/index.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>HTML Tips and Tricks - Tab-indexing</title>
|
||||
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
|
||||
</head>
|
||||
<body class='demo'>
|
||||
<h1><u>tabIndex Property</u></h1>
|
||||
|
||||
<p>Press "Tab" key on your keyboard to navigate to elements in the order of what is given in html file</p>
|
||||
<fieldset>
|
||||
<legend>Tab</legend>
|
||||
|
||||
<p><a id="myAnchorTag1" href="https://github.com/atapas/html-tips-tricks" tabIndex="1">Link 1</a> - This element have given tabIndex="1"</p>
|
||||
<p><a id="myAnchorTag2" href="https://github.com/atapas/html-tips-tricks" tabIndex="3">Link 2</a> - This element have given tabIndex="3"</p>
|
||||
<p><a id="myAnchorTag3" href="https://github.com/atapas/html-tips-tricks" tabIndex="2">Link 3</a> - This element have given tabIndex="2"</p>
|
||||
<p><label to="myInput1">Username: </label><input type="text" id="myInputTag1" tabIndex="5" /> - This element have given tabIndex="5"</p>
|
||||
<p><label to="myInput2">Password: </label><input type="password" id="myInputTag2" tabIndex="4" /> - This element have given tabIndex="4"</p>
|
||||
<p></p><button type="submit" id="myInputTag3" tabIndex="6">Submit</button> - This element have given tabIndex="6"</p>
|
||||
</fieldset>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -91,6 +91,11 @@
|
|||
<a href='./lazy-loading/index.html'>
|
||||
Lazy Loading</a> - Lazy Load html images natively
|
||||
</li>
|
||||
<li>
|
||||
<a href="./Tab-indexing/index.html">
|
||||
Tab-indexing
|
||||
</a> - Use tag button to select html elements in a particular order
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue