Skip to main content
British Red Cross homepage

Header

The Header component is used to display the logo, navigation links, and other important elements like search bars. It helps users identify where they are and provides an organised way to reach the main sections of a website.

Example

The header consists of the following elements:

  1. Logo (required)
  2. Search (optional)
  3. Donate (required)
  4. Menu bar (optional)
  5. Breadcrumb (optional)
  6. Dropdown (optional)

Designer Guidance

When to use

Use the header to help users easily access different sections of the site and maintain a consistent layout. You should:

  • Use the header at the top of every page to provide consistent navigation and branding.

When not to use

  • Do not use multiple headers on a single page.

How to use

  • Keep navigation clear and predictable.
  • Regularly update the navigation links and other dynamic content.
  • Highlight the active page link.
  • Implement hover states for desktop and visible focus states for keyboard users.

Behaviours


  • Implement hover effects on desktop to provide visual feedback when users hover over navigation links. 
  • Highlight the active navigation link to indicate the current page or section. This helps users understand their location within the website.
  • Header adapts to screen size:
    • Collapsed menu on mobile.
    • Full navigation on desktop.

Options


The header has multiple options that can be used:

  • Minimal header: The minimal header features the British Red Cross logo and donate button, it should be used on single page websites where no search or navigation is necessary.
  • Hosted by header: This header features a joint branded logo for websites that are a separate brand but are hosted or supported by the Red Cross.
  • Standard header: To be used on most websites that have more than a single page.
  • Header with breadcrumb: To be used on most websites that have more than a single page and multiple levels of navigation.

Developer Guidance

Best practices

  • Ensure the header component is responsive and maintains usability on different screen sizes and devices.
  • Use semantic HTML:
    • <header> for the component.
    • <nav> for navigation.
  • Apply ARIA roles and labels for navigation landmarks.
  • Ensure keyboard navigation for all links and dropdowns.
  • Provide skip links to bypass repeated content.
  • Maintain logical focus order.
  • Implement responsive design for mobile and desktop.

Content Editor Guidance

Best practices

  • Use short, descriptive link text.
  • Keep navigation structure consistent across all pages.
  • Avoid overloading the header with too many options.
  • Use sentence case for link text.
  • Ensure link text clearly describes it's destination.

Accessibility

Uses semantic landmarks and clear structure, ensuring that navigation and search are operable by a keyboard. Text must meet contrast requirements, interactive elements need visible focus indicators and adequate target size, and skip links should be provided to bypass repeated content. The header should be consistent across all pages.

WCAG Success Criteria

Support

If any accessibility issues have been found or for general questions about this component, please contact the digital team.

Send us a message

Breadcrumb

Button

Search