Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

NAV-001 Published · Updated

Horizontal header

A header shown in the same place on every page, with the logo, a menu of the main pages and a contact button in one row.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Horizontal header

Horizontal header UI design (desktop wireframe)

Wireframe (mobile) | Horizontal header

Horizontal header UI design (mobile wireframe)

What changes on mobile

  1. Menu collapsed into a hamburger: Five items in a row on a narrow screen either shrink the text or wrap.
  2. Contact button kept outside: In this wireframe, getting in touch is the main action and the short label fits the header, so it stays visible without opening the menu.
  3. Current page marked: When the list opens, the current page can be identified at once.
  4. Close with ×, outside tap or Esc: Several ways to close so nobody is stuck, and Esc returns focus to the menu button.

Before you choose this pattern | Horizontal header

Good fit

  • A few main pages that fit in one row at a readable size
  • Corporate, service, shop and office sites with a modest number of pages
  • You want the way to get in touch visible from every page

Poor fit

  • Many main destinations that wrap or crowd in one row (the <a href="/patterns/en/header-dropdown/">dropdown header</a>, which opens child pages under each item, works better)
  • Many kinds of services or products that people should reach straight from the menu (the <a href="/patterns/en/header-mega-menu/">mega menu header</a>, with a large panel, works better)
  • E-commerce and other sites where search and the cart should lead the header

Why this wireframe works | Horizontal header

On desktop, main pages are reachable without opening a menu

On desktop, the main menu is always shown, so people reach the page they want without opening a menu. The items sit in one row in the same place on every page, so readers choose a destination without hunting. On mobile, people open the menu first and then choose where to go.

Visible items convey the shape of the site

The menu also works as a table of contents. With “Services”, “Work” and “Pricing” all in view, first-time visitors grasp what the site covers.

People know which page they are on

Someone who lands on an inner page from search finds it hard to tell where they are. The current page’s menu item is underlined and bold. The hover state is a lighter underline, distinct from the current mark. In the code, aria-current=”page” goes on the link to the current page itself.

The contact entrance stands apart and stays in view

A contact button styled like the menu items disappears among them. It sits at the right as a solid button, so its different role is obvious.

On mobile, the contact entrance is not hidden

Mobile collapses the menu into a hamburger, but putting the contact entrance inside means it is unseen until opened. In this wireframe, getting in touch is the main action and the label is short enough to fit, so the button stays outside the menu. With a long label like “Book a free consultation” that crowds the logo and menu button, shorten it or consider another entrance such as a bar fixed at the bottom.

Common mistakes | Horizontal header

Too many items to fit in a row

Listing every page you want to promote crowds the row on desktop and wraps to two lines at some widths. Limit the main destinations to what fits in one row at a readable size. How many depends on label length and the width of the logo and contact button; this wireframe uses five or six as a guide. If they do not fit, consider a hierarchical pattern such as the dropdown header.

No mark on the current page

If every item looks the same, readers cannot confirm which page they are on. Mark the current item with an underline or bold. In the code, put aria-current=”page” on the link to the current page itself. If the parent is also highlighted while viewing a child page, that is fine as a visual mark, but since it is not the current page itself, keep it separate from aria-current=”page”.

The contact button looks like a menu item

A “Contact” text link among the other items hides the entrance. Use a solid button or similar so the different role is clear.

Menu labels in internal jargon or vague English

Words like “Solutions” or “Products” alone say little about what lies beyond. Choose plain words readers can picture.

The header and menu built for looks only

Built from div elements alone, it may look the same but screen readers cannot tell “this is the site header” or “this is the main menu”. Wrap the site-wide top in a header element and mark the main navigation with nav. With several nav elements (header and footer menus, say), give each a name that says what it is for.

The menu breaks at in-between widths

What fits on a large monitor can wrap or overlap the logo on a laptop or a tablet in landscape. Check desktop, in-between and mobile widths, and decide where to switch to the hamburger.

FAQ | Horizontal header

How many menu items can there be?

As many as fit in one row without wrapping, each at a readable size. The number depends on label length and the width of the logo and contact button; this wireframe uses five or six as a guide. If they do not fit, consider a hierarchy, such as opening child pages under each item. Since the fit changes with width, check in-between widths too.

Should contact be a menu item or a button?

If getting in touch is the site’s main purpose, a button styled apart from the menu items makes the entrance easy to find from any page. A text link among the items is easily lost.

Should the logo link to the home page?

Linking the logo to the home page is common and most readers expect it, so it is the easiest choice.

Should the header stay at the top while scrolling?

Not necessarily. On long pages where people should move to other pages or get in touch while reading, a header that stays at the top is an option. Then check that its height does not narrow the content area too much, especially on mobile.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published