GC Design System Components
GC Design System Start to use Page templates overview Basic page Components overview Breadcrumbs Button Card Checkboxes Container Date input Date modified Details Error message Error summary Fieldset File uploader Footer Grid Header Heading Icon Input Language toggle Link Notice Pagination Radios Screenreader-only Search Select Side navigation Signature Stepper Table Text Textarea Theme and topic menu Top navigation CSS shortcuts overview Reset styles Responsive layout State Box sizing Container sizing Display Overflow Position Visibility Font Font family Font size Font style Font weight Line height Link colour Link size Link text decoration List style Text align Text colour Text overflow Text transform Word break Margin Padding Align content Align items Align self Flex Flex direction Flex grow Flex shrink Flex wrap Gap Grid columns Grid rows Justify content Justify items Justify self Order Place content Place items Place self Background colour Border colour Border radius Border style Border width Icon names Icon size Image Cursor Pointer events Transition Styles overview Design tokens Colour tokens Spacing tokens Typography tokens Contact us Get involved Find a demo

Footer
<gcds-footer>

Also called: site footer.

The footer is the responsive Government of Canada branded footer landmark.

  • Required on Canada.ca
  • Required on GC sites

Footer component preview

On this page

Coding and accessibility for footers

Choose a display mode using the display property

Use the display property to choose one of the two display modes: compact or full.

Choose the compact display to include:

  1. The footer links band and the Government of Canada wordmark.

Include the full display if you need to include:

  1. The main band with a large selection of Government of Canada corporate links.
  2. The footer links band and the Government of Canada wordmark.

Opt to include the contextual band to add up three specific links for your site.

  • Always maintain the integrity of the Government of Canada wordmark. Do not modify the wordmark in any way.
  • Keep the Canada wordmark, privacy link, and terms and conditions link. The other links are only required on standard pages, otherwise you can remove.

Add optional elements

  • Add content to the contextual band by using both the contextual-heading and contextual-links attributes.
  • Use the contextual-heading attribute to assign heading text and the navigational landmark label of the contextual band.
  • Use the contextual-links attribute to set a maximum of three links in the contextual band. Add support links for your product or service, such as contact details for a program.
  • For the contextual band, set the contextual-links, by passing an object or an object in a string in the following format:
{
“1st link label”: “href”
“2nd link label”: “href”
“3rd link label”: “href”
}
  • For the footer links band, set the sub-links, by passing an object or an object in a string in the following format:
{
“1st link label”: “href”
“2nd link label”: “href”
“3rd link label”: “href”
}

Examples Explore the different ways you can configure the component. Each example shows a working implementation and ready-to-copy code.

In this section

Optional attributes These attributes allow you to customize or extend the component’s behaviour and presentation.

contextual-heading

The contextual-heading attribute defines the heading text for the contextual navigation section in the footer. This heading is also used to label the footer’s navigation landmark, supporting clearer structure and accessibility.

The contextual-links attribute defines the set of links displayed in the footer’s contextual navigation section. It accepts an object where each key represents the link label and each value represents the corresponding URL. Format: { link-label: link-href }.

display

The display attribute controls which sections of the footer are rendered. By default, it is set to compact, displaying only the sub-footer section.

When it is set to full, both the main footer and sub-footer sections are displayed.

The sub-links attribute defines the set of links displayed in the sub-footer section. It accepts an object where each key represents the link label and each value represents the corresponding URL. Format: { link-label: link-href }.

Code builder

Generate an instance of the component you need by selecting its code properties.

  1. Explore by choosing different code values to generate the instance you want.

  2. Get the code and pull it into your environment.

  3. Add any copy you need to the component (like text for a label).

Note: The code builder uses English for all code elements, which follows standard practice.

Help us improve

Have questions or a request? Give feedback on our contact form.

Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others.

Give feedback Report an issue on GitHub
2026-05-20