Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
accessibility

Website Header Examples: Common Structures and Layouts

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The best website header is the one that matches what visitors need to do. Use a minimal header for a focused destination, top navigation for content-heavy sites, side navigation for frequent movement between application screens, a mega-menu for broad catalogues, and separate global and service navigation when one service sits inside a larger organisation. Choose from the task and information architecture first, then make the pattern responsive and accessible.

What a website header does

A page-wide header establishes identity and orientation. It commonly contains a logo or wordmark, primary navigation, search, account controls, language selection, or other global tools. The W3C describes the page-wide header region as a place for information such as a logo, search and navigation (W3C Page Regions).

Do not treat a header as decoration. Its links determine how users understand the site’s hierarchy, where they can go next and whether they can return to a familiar task. A header can also be intentionally small: a checkout, form or other linear task may work better without a full navigation menu.

Common website header structures

1. Minimal or stripped-back header

A minimal header keeps the brand and a few global controls—often a logo, language switcher or announcement banner—while omitting broad navigation. The W3C Design System header example illustrates this stripped-back approach.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use it when the page has one dominant action, when users should not leave a transaction, or when a campaign or landing page has a deliberately narrow scope. Confirm that visitors still have a reliable way to reach essential information, such as support, privacy or account access.

#1 Best Overall
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option

2. Top navigation

Top navigation places the main destinations in a horizontal bar, usually beneath or beside the logo. A page or section heading can appear below it. The Intelligence Community Design System recommends this layout for article pages and content-heavy applications (top navigation layout guidance).

It works when the number of primary destinations is limited and labels can remain recognizable at narrower widths. If links no longer fit, move them into a documented mobile menu rather than shrinking text until it becomes difficult to read.

3. Top navigation with a mega-menu

A mega-menu opens a larger panel from a top-level item and exposes categories, subcategories or featured destinations. It can help users scan a broad information architecture, such as a department store, supermarket or large documentation catalogue. The same design-system guidance presents it as an option for complex structures, not as an automatic improvement for every large site.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Group links by meaningful categories, use short headings and keep the panel keyboard-operable. A mega-menu should reveal structure—not display every URL your organisation owns.

4. Side navigation

Side navigation reserves a vertical column for links and is useful in applications where people switch frequently among pages. The Intelligence Community Design System documents a side-navigation layout for that situation (side navigation layout guidance).

It keeps a long list visible while the main content changes, but it consumes horizontal space. The cited guidance recommends choosing either a top-navigation or side-navigation layout for an application rather than combining both as competing primary systems.

5. Layered global and service navigation

Some organisations need two levels of identity. GOV.UK separates a government-wide header from service navigation: the global layer identifies GOV.UK and provides GOV.UK-wide tools, while the service layer contains the service name, service links and service-level tools (GOV.UK header).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This model is appropriate when a service genuinely belongs to a larger platform with shared standards. It does not give other sites permission to copy GOV.UK branding. The GOV.UK Service Manual warns non-GOV.UK services not to use the crown, GOV.UK logotype, brand colours or other cues that imply official affiliation.

How to choose the right layout

Start with the user’s job, not the visual pattern. Answer these questions before selecting a component:

  • Is there one clear end-to-end task, or do users return repeatedly to several tasks?
  • How many top-level destinations exist, and how many levels of hierarchy do they contain?
  • Do users need constant cross-page access while working?
  • How much horizontal or vertical space can navigation reserve without harming the content?
  • What should happen when the viewport is narrow or zoomed?

Linear task versus repeated service

GOV.UK’s navigation guidance advises simplifying a service journey first. If a transaction has a clear sequence, a task list or step indicator may communicate order better than a full navigation menu. Navigation becomes more useful for services used repeatedly, with multiple tasks and no single fixed order (Help users to navigate a service).

Content-heavy site versus application

Choose top navigation when readers browse articles or other content areas and need a stable set of sections. Consider side navigation when people move often between related application screens. For a large catalogue, test whether a mega-menu genuinely helps users find categories; a long panel can be harder to scan than a well-designed landing page or search.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Compare the patterns

Pattern Best fit Main trade-off Questions to test
Minimal Focused pages and linear tasks Fewer visible routes Can users reach required help and exit points?
Top navigation Articles and content-heavy apps Limited horizontal capacity Do labels remain clear at small widths and zoom?
Mega-menu Broad, hierarchical catalogues More interaction and cognitive load Do categories match users’ mental model?
Side navigation Frequent switching among application pages Consumes horizontal space Does the content still have enough room?
Global plus service Services inside a larger platform Two layers to understand and maintain Is the ownership and scope distinction obvious?

Semantic HTML for a robust header

Use a page-level <header> for site-wide identity and navigation, and a separate <nav> with an accessible name for each navigation region. Context matters: a <header> inside an article or section is not the same page-level banner landmark described by W3C.

<header class="site-header">
  <a class="brand" href="/" aria-label="Acme home">
    <img src="/logo.svg" alt="Acme">
  </a>
  <button type="button" aria-expanded="false" aria-controls="primary-nav">
    Menu
  </button>
  <nav id="primary-nav" aria-label="Primary">
    <ul>
      <li><a href="/products">Products</a></li>
      <li><a href="/docs">Documentation</a></li>
      <li><a href="/support">Support</a></li>
    </ul>
  </nav>
</header>

The button must actually toggle the navigation, update aria-expanded, and support keyboard focus. If JavaScript is unavailable, provide a usable fallback or keep the links visible.

Rank #4
Sale
Web Design with HTML, CSS, JavaScript and jQuery Set
  • Brand: Wiley
  • Set of 2 Volumes
  • A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers

Accessibility and responsive behavior

W3C WAI recommends consistent naming, styling and positioning for navigation across pages. Offer more than one way to find content when appropriate—such as search or a site map—and provide orientation cues including clear headings and breadcrumbs (WAI accessibility tips).

  • Keyboard: every link, menu trigger and close control must be reachable with Tab and operable without a pointer.
  • Focus: keep a visible focus indicator and return focus to the trigger when a mobile menu closes.
  • Names: use specific labels such as “Primary” and “Account,” not several anonymous navigation landmarks.
  • Zoom and reflow: test enlarged text and narrow viewports. Rearranging the header is fine, but labels and actions must remain discoverable.
  • State: indicate the current section with an accessible state, not colour alone.
  • Motion and overlays: ensure mega-menus and drawers do not trap focus or obscure the page without a reliable close action.

Responsive design is a change in presentation, not a change in information architecture. Keep the same destinations and recognizable labels even when a horizontal bar becomes a menu button. Test touch targets, sticky headers, browser zoom and screen readers on actual pages.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Implementation and review checklist

  1. List the site’s top tasks and destinations; remove links that do not support them.
  2. Choose one primary navigation pattern for the application and document when secondary navigation appears.
  3. Write labels that describe destinations in users’ language.
  4. Build landmarks with semantic HTML and an explicit navigation name.
  5. Define the small-screen behavior before writing CSS: wrap, collapse, drawer or an intentionally minimal header.
  6. Test keyboard operation, zoom, screen-reader landmarks, touch targets and focus order.
  7. Check every route for consistent placement and current-section indication.
  8. Use analytics or usability sessions to find dead ends and repeatedly opened menus, then revise the information architecture rather than adding more links.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common mistakes and fixes

Putting every link in the header

Large link counts often signal unclear hierarchy. Group destinations, move contextual links into the page or section, and reserve the header for routes users need site-wide.

Combining top and side navigation by default

Two competing primary systems increase scanning and maintenance costs. Pick the pattern that matches the dominant behavior; add a clearly subordinate local navigation only when testing shows it is needed.

Hiding essential links on mobile

A collapsed menu is acceptable; an unreachable menu is not. Ensure the trigger has a name, state, focus styling and a working close path.

Copying a government or platform identity

Separate your organisation’s brand from any service-level navigation. Do not use GOV.UK identity cues unless your service is on the specified GOV.UK domains.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Validate the finished header with real page captures

Responsive screenshots make it easier to review desktop, tablet, mobile, dark-mode and long-page states during design review. Capture the same route at each target viewport, then inspect clipping, overlap, focus styles and menu state. A screenshot cannot replace keyboard or assistive-technology testing, but it quickly exposes visual regressions.

Or skip the browser setup

ScreenshotNeo is the quickest way to capture a page from one request: it removes cookie-consent banners, newsletter popups and chat widgets before capture; bot checks, blank pages, timeouts, failed loads and cache hits are not billed; and its MCP server lets AI agents use take_screenshot, get_page_info and capture_pdf. The Free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000.

See the ScreenshotNeo documentation for all options. A basic capture is:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o header.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://example.com"}, timeout=90)
open("header.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Sign up for 1,000 free screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Should a blog use a mega-menu?

Only if readers need to browse a genuinely broad, hierarchical set of categories. Test category labels and compare the menu with simpler section landing pages.

Can a header contain more than one nav element?

Yes. Give each navigation landmark a distinct accessible name, such as Primary, Utility or Service, and keep their scopes clear.

Quick Recap

SaleBestseller No. 1
HTML and CSS: Design and Build Websites
HTML and CSS: Design and Build Websites
HTML CSS Design and Build Web Sites; Comes with secure packaging; It can be a gift option
$14.18
SaleBestseller No. 3
SaleBestseller No. 4
Web Design with HTML, CSS, JavaScript and jQuery Set
Web Design with HTML, CSS, JavaScript and jQuery Set
Brand: Wiley; Set of 2 Volumes
$35.05

Is a sticky header required?

No. Make it sticky only when persistent access materially helps the task and the reduced content area, zoom behavior and mobile performance remain acceptable.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.