This is an internal development app.
To learn how to use the GOV.UK Design System in your project, see Get started.

Skip to main content
  1. GOV.UK Frontend
  2. All components
  3. Back link

Back link

Code

Markup

<a href="#" class="govuk-back-link">Back</a>

Macro

{% from "govuk/components/back-link/macro.njk" import govukBackLink %}

{{ govukBackLink({
  href: "#"
}) }}
Code

Markup

<a href="#" class="govuk-back-link">Back to home</a>

Macro

{% from "govuk/components/back-link/macro.njk" import govukBackLink %}

{{ govukBackLink({
  href: "#",
  text: "Back to home"
}) }}
Code

Markup

<a href="#" class="govuk-back-link govuk-back-link--inverse">Back</a>

Macro

{% from "govuk/components/back-link/macro.njk" import govukBackLink %}

{{ govukBackLink({
  classes: "govuk-back-link--inverse",
  href: "#"
}) }}