Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Created November 3, 2019 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/a2e98a2814e8bee364e327bfa0d88c2d to your computer and use it in GitHub Desktop.
Save nolanlawson/a2e98a2814e8bee364e327bfa0d88c2d to your computer and use it in GitHub Desktop.
Demo of a link with tabindex=-1
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Demo of a link with tabindex=-1</title>
</head>
<body>
<h1>Demo of a link with tabindex=-1</h1>
<ul>
<li>
<a href=https://example.com>link</a>
</li>
<li>
<a href=https://example.com tabindex=-1>link with tabindex=-1 - click me and then go back</a>
</li>
<li>
<a href=https://example.com>another link</a>
</li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment