A skip link is usually the first interactive element on a page. It is visually hidden by default, appears on keyboard focus, and lets users bypass repeated blocks quickly.
This pattern is mainly relevant for keyboard users. It allows skipping past elements with many focusable children.
Recommended baseline: one link to main content
This is the default pattern for most websites:
A "Skip to main content" link comes first in the DOM.
The link is visually hidden while not focused.
On focus, the link becomes visible.
On activation, users jump to main content.
If a skip-link target is not focusable by default, set tabindex="-1" on that target.
<aclass="skip-link"href="#main-content">
Skip to main content
</a><headerclass="site-header"aria-label="Site header"><navclass="main-nav"aria-label="Main navigation"><ul><li><ahref="#">Home</a></li><li><ahref="#">Products</a></li><li><ahref="#">Pricing</a></li><li><ahref="#">Support</a></li></ul></nav><aclass="header-search"id="site-search"href="#">
Search
</a></header><mainid="main-content"tabindex="-1"><h1>Main content</h1><p>
This section is the recommended baseline target for most websites.
</p><p>
You can continue with <ahref="#">this content link</a> or
<ahref="#">this secondary link</a>.
</p></main><footerclass="site-footer"id="footer-navigation"tabindex="-1"><navaria-label="Footer navigation"><ul><li><ahref="#">Contact</a></li><li><ahref="#">Imprint</a></li><li><ahref="#">Privacy</a></li><li><ahref="#">Accessibility statement</a></li></ul></nav></footer>
<aclass="skip-link"href="#site-search">
Skip to search
</a><aclass="skip-link"href="#main-content">
Skip to main content
</a><aclass="skip-link"href="#footer-navigation">
Skip to footer navigation
</a><headerclass="site-header"><navclass="main-nav"aria-label="Main navigation"><ul><li><ahref="#">Home</a></li><li><ahref="#">Products</a></li><li><ahref="#">Pricing</a></li><li><ahref="#">Support</a></li></ul></nav><aclass="header-search"id="site-search"href="#">
Search
</a></header><mainid="main-content"tabindex="-1"><h2>Main content</h2><p>
This section is the recommended baseline target for most websites.
</p><p>
Continue with <ahref="#">this content link</a>.
</p></main><footerid="footer-navigation"tabindex="-1"><h2>Footer navigation</h2><navaria-label="Footer navigation"><ul><li><ahref="#">Contact</a></li><li><ahref="#">Privacy</a></li><li><ahref="#">Accessibility statement</a></li></ul></nav></footer>