---
title: "Discussion on \"Add a skip link (Web HIG tip #11)\" | Hashnode"
description: "Discussion on \"Add a skip link (Web HIG tip #11)\". Load your site, click the address bar, and press Tab. Count how many presses it takes to reach the first thing in the main content. Every one of those stops is a logo, a nav link, or a menu toggle tha"
url: "https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Add a skip link (Web HIG tip #11)](https://thewebhig.hashnode.dev/add-a-skip-link-web-hig-tip-11?utm_source=hashnode&utm_medium=feed)

Load your site, click the address bar, and press Tab. Count how many presses it takes to reach the first thing in the main content. Every one of those stops is a logo, a nav link, or a menu toggle tha

Oct 17 · 4 min read · thewebhig.hashnode.dev  
Read the article

-   [#accessibility](https://hashnode.com/tag/accessibility)
-   [#html](https://hashnode.com/tag/html)
-   [#a11y](https://hashnode.com/tag/a11y)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Sastha Kl](https://hashnode.com/@sastha)

@sastha

  
[View profile](https://hashnode.com/@sastha)

## Responses 2

Markdown supported · ⌘↵ to post

[StackShortlist](https://hashnode.com/@veristria)

[Oct 17](https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726/comment/6ad32c1e6d13d41cd7f639cc)

The hash-mode router point is the one that bites most SPAs. The link looks right in review, then the router treats #main as a route and nothing moves. The tabindex="-1" on main is a nice detail as well, since without it some browsers scroll to the target but leave focus in the header, so the next Tab goes back to the nav.

[Sastha Kl](https://hashnode.com/@sastha)

[11h ago](https://hashnode.com/posts/add-a-skip-link-web-hig-tip-11/6ad3088c987976b51e388726/comment/6ad32c1e6d13d41cd7f639cc#reply-6afc083496908896efde05d7)

Thanks — that's a useful confirmation of the SPA catch. If a hash-mode router treats #main as a route, the link can look right in review and still go nowhere. Handling the click and focusing main (with tabindex="-1") keeps the next Tab in the content, instead of back in the header.
