Information

You appear to be using an unsupported browser, and it may not be able to display this site properly. You may wish to upgrade your browser.

Site footer

A site footer should appear at the bottom of every page and highlights links to content about the website.

Sample HTML

<footer class="ds_site-footer">
    <div class="ds_wrapper">
        <div class="ds_site-footer__content">
            <ul class="ds_site-footer__site-items">
                <li class="ds_site-items__item">
                    <a href="#">Privacy</a>
                </li>
                <li class="ds_site-items__item">
                    <a href="#">Cookies</a>
                </li>
                <li class="ds_site-items__item">
                    <a href="#">Accessibility</a>
                </li>
            </ul>

            <div class="ds_site-footer__copyright">
                <a class="ds_site-footer__copyright-logo" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/">
                    <img src="/binaries/content/gallery/designsystem/examples/ogl-svg" alt="Open Government License" />
                </a>
                <p>All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/">Open Government Licence v3.0</a>, except for graphic assets and where otherwise stated</p>
                <p>&copy; Crown Copyright</p>
            </div>

            <div class="ds_site-footer__org">
                <a class="ds_site-footer__org-link" title="The Scottish Government" href="https://www.gov.scot/">
                    <img class="ds_site-footer__org-logo" src="/binaries/content/gallery/designsystem/examples/scottish-government--min-svg" alt="gov.scot" loading="lazy" width="300" height="55" />
                </a>
            </div>
        </div>
    </div>
</footer>

About this pattern

A site footer should include:

  • a list of links to items such as the privacy statement, cookie information and accessibility statement
  • a copyright statement – for example, mygov.scot uses: “All content is available under the Open Government Licence v3.0, except for graphic assets and where otherwise stated. © Crown Copyright”
  • an additional logo, if a parent or partner organisation’s logo is needed

Spacing and layout

The site footer is intended to be used in the “page bottom” container of the basic Design System page template. The page template includes spacing between the main content of the page, placed inside “page middle”, and the footer.

If the content immediately preceding the footer has a non-white background, you should add a modifier class of ds_pre-footer-background to the element that has the background colour to make the background colour continue all the way to the footer. That element can be the ds_page--middle container or a descendant of it.

Why we use this pattern

Site footers are a best practice web pattern used to add information about a website at the bottom of web pages.

Evidence

Analytics evidence from mygov.scot and gov.scot shows that users are familiar with the logo as a route to the homepage. Users also interact with all the footer links.

Website analytics

The footer links, copyright notice, and footer logo are trackable as follows:

  • Footer link clicks can be tracked through the original page path, the click URL, the click text, and a data attribute attached to all links.

  • Footer copyright clicks can be tracked through the original page path, the click URL, and a data attribute attached to all copyright links.

  • Footer logo clicks can be tracked through the original page path, the click URL, and a data attribute attached to the image.

The data attributes are added automatically by the Design System’s ‘tracking’ script.

Live example

A Trading Nation (tradingnation.mygov.scot)

Back to top