Skip to main content
Preview This is a design system preview environment for main branch

Internal review app NHS.UK frontend

Use design system guidance and examples to build consistent, accessible NHS services for the public and staff.

Skip link

These examples are used for automated tests and may not follow service manual best practice.

Code

Markup

<a class="nhsuk-skip-link" data-module="nhsuk-skip-link" href="#maincontent">Skip to main content</a>

Macro

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

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