Skip to main content
Pricing

Skip Link

Pro

An anchor link that is the very first focusable element in the DOM, visually hidden until it receives keyboard focus. When activated, it jumps the user past the header and navigation directly to the main content area. Essential for keyboard and screen reader users who would otherwise have to tab through dozens of navigation links on every page load.

2 variants

Skip to content

Variants

VariantDescriptionWhen to use
DefaultSingle "Skip to main content" link targeting the <main> element.Use on every page as the first focusable element in the document.

Usage Guidelines

Do

Place the skip link as the very first focusable element in the DOM.

Don't

Place the skip link after the header — it must come before all navigation.

Do

Target the <main> element or a container with id="main-content".

Don't

Hide the skip link from screen readers with display:none — use a visually-hidden technique that preserves focusability.

Do

Make the link visible on focus with a smooth slide-in animation.

Don't

Forget to add a matching id on the target element.

Do

Use clear, action-oriented text — "Skip to main content".

Don't

Use vague link text like "Skip" without specifying the destination.

Code

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Design Tokens

This component is included in Lexicon Pro

From €149 — one-time purchase, lifetime access

View pricing

Accessibility

  • Must be the very first focusable element in the DOM — before any header or navigation.
  • Visually hidden off-screen by default but never with display:none or visibility:hidden, which would remove it from the tab order.
  • Target element (<main> or #main-content) should have tabindex="-1" so it can receive focus programmatically.
  • Meets WCAG 2.4.1 (Bypass Blocks) at Level A — this is a baseline requirement, not optional.
  • Text should describe the destination — "Skip to main content", not just "Skip".

Keyboard Interactions

TabReveals the skip link as the first focusable element on the page.
EnterJumps focus to the main content area, bypassing all navigation.