Navigation for large sites: mega menus and search

Advanced  Nov 3, 2026

Handle hundreds of pages without overwhelming visitors.

Navigation for large sites: mega menus and search
The steps of this tutorial at a glance.
The steps of this tutorial at a glance.

When a mega menu helps

A mega menu is a large panel of grouped links. It suits sites with many categories, such as shops and universities. For small sites a simple menu is better.

Design rules

  • Group links under clear headings.
  • Limit the panel to what fits without scrolling.
  • Show the most important links first.
  • Add a short description or image only where it helps.
  • Highlight the current section.
The main points of this section.
The main points of this section.

Behaviour

  • Open on click or a short hover delay, not instantly on every mouse movement.
  • Allow the pointer to travel diagonally without the menu closing.
  • Close with Escape and when clicking outside.
  • On mobile, replace it with a stacked list or slide-in panels with a clear back button.
The main points of this section.
The main points of this section.

Accessibility

  • Use a button with aria-expanded to open each panel.
  • Keep a logical tab order.
  • Do not rely on hover only.
<button aria-expanded="false" aria-controls="menu-products">Products</button>
<div id="menu-products" hidden>...</div>
How the code in this section fits into the page.
How the code in this section fits into the page.

Pair with search

On large sites many people go straight to search. Make it prominent and good: suggestions, filters and typo tolerance.

Other helps

  • Breadcrumbs on deep pages.
  • "Popular" or "Recently viewed" links.
  • A footer sitemap.
  • Landing pages for each top-level category.
The main points of this section.
The main points of this section.

Test

Use tree testing and first-click tests with real tasks to check that people find things.

More tutorials