Skip to main content

Skip link

Use a skip link to help keyboard-only users skip to the main content on a page.

Code and design

Open in new window
Copy
<p>To view the skip link, tab to this example, or click inside this example and press tab.</p>

<a class="nhsuk-skip-link" href="#maincontent">Skip to main content</a>
Copy
<p>To view the skip link, tab to this example, or click inside this example and press tab.</p>

{% from 'skip-link/macro.njk' import skipLink %}

{{ skipLink({
  "href": "#maincontent",
  "text": "Skip to main content"
}) }}

When to use a skip link

All nhs.uk pages must include a skip link in the header following guidance in the GOV.UK design system.

How skip links work

Some people use the tab key on their keyboard to navigate through the links and form elements on a web page. Including a skip link gives users the option to bypass the top-level navigation links and jump to the main content on the page.

The skip link component is visually hidden until a keyboard press activates it.

Research

If you’ve used text input, please share your user research findings.

Discuss

Discuss skip links on GitHub

Get in touch

If you have a question:

Updated: February 2019