UI tipsa handbook of interface patterns

03Finding your way

Menus and navigation

Think of a big supermarket you visit for the first time. You look up at the hanging signs to find the milk, check which aisle you are standing in, and keep half an eye on where the exit is. On a website, the menu plays the part of those signs. Nobody ever praises good signs, but bad ones send people back to the car park.

Updated:

On this page
  1. Use the words your visitors use
  2. Show where people are
  3. The three-line menu button
  4. Breadcrumbs on bigger sites
  5. Search, when there is a lot to find
  6. Help for keyboard users
  7. A footer that helps
  8. Before you move on
  9. Sources

Use the words your visitors use

Name menu items the way your visitors would say them out loud, not the way your team talks in meetings. “Prices” is clearer than “Solutions”. “Delivery and returns” is clearer than “Customer care”. Keep each item to one or two words, and avoid two items that sound almost the same.

Most sites get by with five to seven words in the top menu. If you have more, put some of them into groups. Before you settle on the names, try them out on three people. Ask where they would click to find your opening hours, then keep quiet and watch. Their first click will tell you more than an hour of discussion.

Show where people are

Mark the menu item for the page someone is on. Bold text or a line under it works well. Colour alone is not enough, because some people can’t see the difference. Developers can also add aria-current="page" to that link so screen readers say “current page”.

The big heading on the page should use the same words as the menu item that led there. If the menu says “Prices” and the page heading says “Flexible plans for every team”, people wonder if they clicked the wrong thing.

Fig. 03.1Do and don’t

Don’t

ProductPricesDeliveryBlogHelpContactFlexible plans for every team

Do

ProductPricesDeliveryBlogHelpContactPrices
The menu and the page heading should agree on where you are.

The three-line menu button

That little button with three stacked lines, sometimes called a hamburger, is everywhere now. It earns its place on a phone, where every centimetre counts. A computer screen has room to spare, though, so tucking the menu away there just hides your pages, and visitors tend to ignore what they can’t see.

On phones, it helps to write the word “Menu” next to the three lines, because not everyone knows that sign. If you only have four main sections, you can often show them as a bar along the bottom of the screen instead.

Picture a shop site with shelves inside shelves. Above the product name, a thin line of words such as Home › Shoes › Running shoes tells the visitor which shelf this item sits on. Every word in that line can be clicked except the final one, because that is the page already open. Someone who landed here straight from Google can tap “Shoes” and browse the whole shelf, instead of going all the way back to the start.

Fig. 03.2Annotated

Home›Shoes›Running shoes›Trail 4Product photoTrail 4Trail running shoe, sizes 38–463,450 UAHAdd to cart123
  1. Each level is a link.
  2. The current page, not a link.
  3. The separator is decorative, hidden from screen readers.
A breadcrumb trail shows where the page lives, so people can step back one level.

Search, when there is a lot to find

If your site has more than a few dozen pages, add a search box and keep it in the same place on every page, usually at the top on the right. On a computer, show the box itself and not just a small magnifying glass. When a search finds nothing, don’t stop at “No results”. Suggest another spelling or show a few popular pages.

Help for keyboard users

Some people never use a mouse. They move through the page with the Tab key. For them, the first thing on every page should be a link that says “Skip to content”. It can stay hidden until they press Tab. Without it, they have to go through the whole menu again on every single page.

Pressing Tab should also move through the page in the order things appear on screen, from top to bottom and left to right.

People who scroll to the very bottom are often still looking for something: a phone number, opening hours, delivery terms, the return policy. Put those in the footer in normal-sized, readable text. Tiny pale grey writing at the bottom isn’t a footer, it’s a hiding place.

Before you move on

Open any page of your site and ask a friend three questions: which page are we on, how do I get to the prices, and how do I get back to the start. If they answer all three without hesitating, your navigation works.

Sources