Skip link
When to use it
Use a skip link as the first focusable element on a page so keyboard users can move directly to the main content. It stays off screen until focused, then appears above the navigation. The component needs only framework CSS and works independently of Site header and page themes.
What it looks like
How to use it
Place the link before the header, outside any container that moves or clips its contents. Match its fragment URL to the main content's unique ID.
html
<body>
<a href="#main" class="c-skip-link">Skip to content</a>
<header>…</header>
<main id="main">…</main>
</body>Use a translated label that describes the destination. Keep the link in the tab order; do not add hidden or aria-hidden to the link itself. No JavaScript is required.
Use c-skip-link independently of the page theme and Site header.