Header
Header
The standard header as used on information pages on GOV.UK
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15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2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({}) }}
Header with service name
If your service is more than a few pages long, you can help users understand where they are by adding the service name.
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-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8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<a href="/components/header" class="govuk-header__link govuk-header__service-name">
Service Name
</a>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
serviceName: "Service Name",
serviceUrl: "/components/header"
}) }}
Header with service name but no service url
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-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-2.8c-1-1.2-1.6-2.6-2.2-4.4-.4-1.6-.8-3.4-.8-5.4v-.2c0-2,.2-3.8.8-5.4.4-1.6,1.2-3.2,2.2-4.4,1-1.2,2.2-2.2,3.4-2.8,1.4-.6,3-1,4.8-1s3.4.4,4.8,1,2.6,1.6,3.4,2.8c1,1.2,1.6,2.6,2.2,4.4.4,1.6.8,3.4.8,5.4v.2ZM177.8,54l-11.8-42h9.4l8,31.4h.2l8-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<span class="govuk-header__service-name">
Service Name
</span>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
serviceName: "Service Name"
}) }}
Header with navigation
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-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>
</svg>
</a>
</div>
<div class="govuk-header__content">
<nav aria-label="Menu" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item govuk-header__navigation-item--active">
<a class="govuk-header__link" href="#1">
Navigation item 1
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#2">
Navigation item 2
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#3">
Navigation item 3
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#4">
Navigation item 4
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
navigation: [
{
href: "#1",
text: "Navigation item 1",
active: true
},
{
href: "#2",
text: "Navigation item 2"
},
{
href: "#3",
text: "Navigation item 3"
},
{
href: "#4",
text: "Navigation item 4"
}
]
}) }}
Header with custom navigation label
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5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8.8-5.4.4-1.6,1.2-3.2,2.2-4.4,1-1.2,2.2-2.2,3.4-2.8,1.4-.6,3-1,4.8-1s3.4.4,4.8,1,2.6,1.6,3.4,2.8c1,1.2,1.6,2.6,2.2,4.4.4,1.6.8,3.4.8,5.4v.2ZM177.8,54l-11.8-42h9.4l8,31.4h.2l8-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<nav aria-label="Custom navigation label" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item govuk-header__navigation-item--active">
<a class="govuk-header__link" href="#1">
Navigation item 1
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#2">
Navigation item 2
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#3">
Navigation item 3
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#4">
Navigation item 4
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
navigationLabel: "Custom navigation label",
navigation: [
{
href: "#1",
text: "Navigation item 1",
active: true
},
{
href: "#2",
text: "Navigation item 2"
},
{
href: "#3",
text: "Navigation item 3"
},
{
href: "#4",
text: "Navigation item 4"
}
]
}) }}
Header with custom menu button text
Button translated into Welsh
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.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-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<nav aria-label="Dewislen" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Dewislen
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item govuk-header__navigation-item--active">
<a class="govuk-header__link" href="#1">
Eitem llywio 1
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#2">
Eitem llywio 2
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#3">
Eitem llywio 3
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#4">
Eitem llywio 4
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
menuButtonText: "Dewislen",
navigation: [
{
href: "#1",
text: "Eitem llywio 1",
active: true
},
{
href: "#2",
text: "Eitem llywio 2"
},
{
href: "#3",
text: "Eitem llywio 3"
},
{
href: "#4",
text: "Eitem llywio 4"
}
]
}) }}
Header with custom menu button label
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8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4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<nav aria-label="Menu" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="Custom button label" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item govuk-header__navigation-item--active">
<a class="govuk-header__link" href="#1">
Navigation item 1
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#2">
Navigation item 2
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#3">
Navigation item 3
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#4">
Navigation item 4
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
menuButtonLabel: "Custom button label",
navigation: [
{
href: "#1",
text: "Navigation item 1",
active: true
},
{
href: "#2",
text: "Navigation item 2"
},
{
href: "#3",
text: "Navigation item 3"
},
{
href: "#4",
text: "Navigation item 4"
}
]
}) }}
Header with service name and navigation
If you need to include basic navigation, contact or account management links.
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="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2.8c-1.4.6-3,1-4.8,1s-3.4-.4-4.8-1-2.6-1.6-3.4-2.8c-1-1.2-1.6-2.6-2.2-4.4-.4-1.6-.8-3.4-.8-5.4v-.2c0-2,.2-3.8.8-5.4.4-1.6,1.2-3.2,2.2-4.4,1-1.2,2.2-2.2,3.4-2.8,1.4-.6,3-1,4.8-1s3.4.4,4.8,1,2.6,1.6,3.4,2.8c1,1.2,1.6,2.6,2.2,4.4.4,1.6.8,3.4.8,5.4v.2ZM177.8,54l-11.8-42h9.4l8,31.4h.2l8-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<a href="/components/header" class="govuk-header__link govuk-header__service-name">
Service Name
</a>
<nav aria-label="Menu" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item govuk-header__navigation-item--active">
<a class="govuk-header__link" href="#1">
Navigation item 1
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#2">
Navigation item 2
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#3">
Navigation item 3
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#4">
Navigation item 4
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
serviceName: "Service Name",
serviceUrl: "/components/header",
navigation: [
{
href: "#1",
text: "Navigation item 1",
active: true
},
{
href: "#2",
text: "Navigation item 2"
},
{
href: "#3",
text: "Navigation item 3"
},
{
href: "#4",
text: "Navigation item 4"
}
]
}) }}
Header with large navigation
An edge case example with a large number of navigation items with long names used to test wrapping
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-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-11.8-42h9.4l8,31.4h.2l8-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<nav aria-label="Menu" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/benefits">
Benefits
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/births-deaths-marriages">
Births, deaths, marriages and care
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/business">
Business and self-employed
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/childcare-parenting">
Childcare and parenting
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/citizenship">
Citizenship and living in the UK
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/justice">
Crime, justice and the law
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/disabilities">
Disabled people
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/driving">
Driving and transport
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/education">
Education and learning
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/employing-people">
Employing people
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/environment-countryside">
Environment and countryside
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/housing-local-services">
Housing and local services
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/tax">
Money and tax
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/abroad">
Passports, travel and living abroad
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/visas-immigration">
Visas and immigration
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="/browse/working">
Working, jobs and pensions
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
navigation: [
{
href: "/browse/benefits",
text: "Benefits"
},
{
href: "/browse/births-deaths-marriages",
text: "Births, deaths, marriages and care"
},
{
href: "/browse/business",
text: "Business and self-employed"
},
{
href: "/browse/childcare-parenting",
text: "Childcare and parenting"
},
{
href: "/browse/citizenship",
text: "Citizenship and living in the UK"
},
{
href: "/browse/justice",
text: "Crime, justice and the law"
},
{
href: "/browse/disabilities",
text: "Disabled people"
},
{
href: "/browse/driving",
text: "Driving and transport"
},
{
href: "/browse/education",
text: "Education and learning"
},
{
href: "/browse/employing-people",
text: "Employing people"
},
{
href: "/browse/environment-countryside",
text: "Environment and countryside"
},
{
href: "/browse/housing-local-services",
text: "Housing and local services"
},
{
href: "/browse/tax",
text: "Money and tax"
},
{
href: "/browse/abroad",
text: "Passports, travel and living abroad"
},
{
href: "/browse/visas-immigration",
text: "Visas and immigration"
},
{
href: "/browse/working",
text: "Working, jobs and pensions"
}
]
}) }}
Header with product name
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6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6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
<span class="govuk-header__product-name">Product Name</span>
</a>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
navigationClasses: "govuk-header__navigation--end",
productName: "Product Name"
}) }}
Header full width
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-header__container--full-width">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2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-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
<span class="govuk-header__product-name">Product Name</span>
</a>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
containerClasses: "govuk-header__container--full-width",
navigationClasses: "govuk-header__navigation--end",
productName: "Product Name"
}) }}
Header full width with navigation
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-header__container--full-width">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circ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-1.2,3.2-2.2,4.4s-2.2,2.2-3.4,2.8c-1.4.6-3,1-4.8,1s-3.4-.4-4.8-1-2.6-1.6-3.4-2.8c-1-1.2-1.6-2.6-2.2-4.4-.4-1.6-.8-3.4-.8-5.4v-.2c0-2,.2-3.8.8-5.4.4-1.6,1.2-3.2,2.2-4.4,1-1.2,2.2-2.2,3.4-2.8,1.4-.6,3-1,4.8-1s3.4.4,4.8,1,2.6,1.6,3.4,2.8c1,1.2,1.6,2.6,2.2,4.4.4,1.6.8,3.4.8,5.4v.2ZM177.8,54l-11.8-42h9.4l8,31.4h.2l8-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
<span class="govuk-header__product-name">Product Name</span>
</a>
</div>
<div class="govuk-header__content">
<nav aria-label="Menu" class="govuk-header__navigation govuk-header__navigation--end">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item govuk-header__navigation-item--active">
<a class="govuk-header__link" href="#1">
Navigation item 1
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#2">
Navigation item 2
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#3">
Navigation item 3
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
containerClasses: "govuk-header__container--full-width",
navigationClasses: "govuk-header__navigation--end",
productName: "Product Name",
navigation: [
{
href: "#1",
text: "Navigation item 1",
active: true
},
{
href: "#2",
text: "Navigation item 2"
},
{
href: "#3",
text: "Navigation item 3"
}
]
}) }}
Header with full width border
Makes the header's bottom border full width without affecting the header's content. Removed with redesign.
Code
Markup
<header class="govuk-header govuk-header--full-width-border" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.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4l8,31.4h.2l8-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
<span class="govuk-header__product-name">Product Name</span>
</a>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
classes: "govuk-header--full-width-border",
productName: "Product Name"
}) }}
Header navigation item with html
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r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s-2.2,2.2-3.4,2.8c-1.4.6-3,1-4.8,1s-3.4-.4-4.8-1-2.6-1.6-3.4-2.8c-1-1.2-1.6-2.6-2.2-4.4-.4-1.6-.8-3.4-.8-5.4v-.2c0-2,.2-3.8.8-5.4.4-1.6,1.2-3.2,2.2-4.4,1-1.2,2.2-2.2,3.4-2.8,1.4-.6,3-1,4.8-1s3.4.4,4.8,1,2.6,1.6,3.4,2.8c1,1.2,1.6,2.6,2.2,4.4.4,1.6.8,3.4.8,5.4v.2ZM177.8,54l-11.8-42h9.4l8,31.4h.2l8-31.4h9.4l-11.8,42h-11.4,0ZM235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<a href="/components/header" class="govuk-header__link govuk-header__service-name">
Service Name
</a>
<nav aria-label="Menu" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item govuk-header__navigation-item--active">
<a class="govuk-header__link" href="#1">
<em>Navigation item 1</em>
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#2">
<em>Navigation item 2</em>
</a>
</li>
<li class="govuk-header__navigation-item">
<a class="govuk-header__link" href="#3">
<em>Navigation item 3</em>
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
serviceName: "Service Name",
serviceUrl: "/components/header",
navigation: [
{
href: "#1",
html: "<em>Navigation item 1</em>",
active: true
},
{
href: "#2",
html: "<em>Navigation item 2</em>"
},
{
href: "#3",
html: "<em>Navigation item 3</em>"
}
]
}) }}
Header navigation item with text without link
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <g>
<circle cx="20" cy="17.6" r="3.7"/>
<circle cx="10.2" cy="23.5" r="3.7"/>
<circle cx="3.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<circle cx="43.3" cy="17.6" r="3.7"/>
<circle cx="53.2" cy="23.5" r="3.7"/>
<circle cx="59.7" cy="33.2" r="3.7"/>
<circle cx="31.7" cy="30.6" r="3.7"/>
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.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235.4,46.7c1.2,0,2.4-.2,3.4-.6,1-.4,2-.8,2.8-1.6s1.4-1.6,1.8-2.8c.4-1.2.6-2.4.6-4V11.8h8.2v27.2c0,2.4-.4,4.4-1.2,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
<div class="govuk-header__content">
<a href="/components/header" class="govuk-header__link govuk-header__service-name">
Service Name
</a>
<nav aria-label="Menu" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>
Menu
</button>
<ul id="navigation" class="govuk-header__navigation-list">
<li class="govuk-header__navigation-item">
Navigation item 1
</li>
<li class="govuk-header__navigation-item">
Navigation item 2
</li>
<li class="govuk-header__navigation-item">
Navigation item 3
</li>
</ul>
</nav>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
serviceName: "Service Name",
serviceUrl: "/components/header",
navigation: [
{
text: "Navigation item 1"
},
{
text: "Navigation item 2"
},
{
text: "Navigation item 3"
}
]
}) }}
Header with St. Edward's Crown
Does not work if the rebrand is enabled.
Code
Markup
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="/" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 304 60"
height="30"
width="152"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK"
><title>GOV.UK</title> <path d="M13.4,22.3c2,.8,4.2-.2,5-2s-.2-4.2-2-5c-2-.8-4.2.2-5,2-.8,2,0,4.2,2,5M4.8,27.3c2,.8,4.2-.2,5-2s-.2-4.2-2-5c-2-.8-4.2.2-5,2-1,2,0,4.2,2,5M2.2,36.9c2,.8,4.2-.2,5-2,.8-2-.2-4.2-2-5-2-.8-4.2.2-5,2-.8,2,0,4.2,2,5M23,25.3c2,.8,4.2-.2,5-2s-.2-4.2-2-5c-2-.8-4.2.2-5,2s0,4.2,2,5M57.8,22.3c-2,.8-4.2-.2-5-2s.2-4.2,2-5c2-.8,4.2.2,5,2,1,2,0,4.2-2,5M66.4,27.3c-2,.8-4.2-.2-5-2s.2-4.2,2-5c2-.8,4.2.2,5,2,1,2,0,4.2-2,5M69,36.9c-2,.8-4.2-.2-5-2-.8-2,.2-4.2,2-5,2-.8,4.2.2,5,2,.8,2,0,4.2-2,5M48.2,25.3c-2,.8-4.2-.2-5-2s.2-4.2,2-5c2-.8,4.2.2,5,2s0,4.2-2,5M37.6,15.5l4.8,2.6v-7.2l-4.8,1.6c-.2-.2-.2-.4-.4-.4s2-6,2-6h-6.8l2,6c-.2.2-.4.2-.4.4-.2.2-4.8-1.4-4.8-1.4v7l4.8-2.6c-.2.2,0,.4.2.6l-2.8,8.4c-.2.4-.2.8-.2,1.4,0,2.2,1.6,4.2,3.8,4.4h1.2c2.2-.4,3.8-2.2,3.8-4.4s0-.8-.2-1.4l-2.8-8.4c.4-.2.6-.4.6-.6M35.6,56.1c9.2,0,17.8.6,25.6,1.8,2.2-9.2,4.8-14.4,7.6-18.2l-5.2-1.8c.6,2.6.6,3.8,0,5.6-.8-.8-1.6-2.4-2.2-4.8l-2.4,8.4c1.6-1,2.8-1.8,4-1.8-2.4,5.2-5.4,6.4-7.2,6-2.4-.4-3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,6.2s-2,3.4-3.6,4.8c-1.4,1.4-3.2,2.4-5.4,3-2,.8-4.4,1-6.8,1s-4.8-.4-6.8-1c-2-.8-3.8-1.8-5.4-3-1.6-1.4-2.6-3-3.6-4.8-.8-1.8-1.2-4-1.2-6.2V11.7h8.4v26c0,1.6.2,2.8.6,4,.4,1.2,1,2,1.8,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z"/>
</svg>
</a>
</div>
</div>
</header>
Macro
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
useTudorCrown: false
}) }}