Components
Skip link
Use the skip link component to help keyboard-only users skip to the main content on a page.
Open this
skip link
example in a new tab
- HTML
- Nunjucks
HTML
<p class="govuk-body">To view the skip link component tab to this example, or click inside this example and press tab.</p>
<a href="#content" class="govuk-skip-link">Skip to main content</a>
Nunjucks
Nunjucks macro options
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
Some options are required for the macro to work; these are marked as “Required” in the option description.
If you’re using Nunjucks macros in production with “html” options, or ones ending with “html”, you must sanitise the HTML to protect against cross-site scripting exploits.
Primary options
Name
Type
[...]