Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

Header UI design

Header: UI design patterns with wireframes (desktop and mobile) and prompts.

12 patterns

How to choose a pattern ↓

Header patterns

How to choose a header pattern

Header patterns differ on four points: how many main pages there are and how deep they go; whether the logo's impression or ease of navigation comes first; whether the header stays visible after scrolling; and how the menu opens on mobile. Use questions 1 and 2 to settle the desktop layout, then questions 3 and 4 for behavior and the mobile menu. Once you have picked a pattern, its page gives you the wireframes, prompts and a live demo.

Question 1: How many main pages, and how deep?

Number and depth of main pagesPattern
Few, with no child pages, fitting readably in one row beside the logo→ Go to question 2
Too many for the logo's row, or contact details such as a phone number and hours, or secondary functions such as language switching or login, needed on every pageTwo-tier header
Child pages under main categories, each few enough for a single-column listDropdown header
Many child pages under main categories, to be chosen in groups or with descriptionsMega menu header

Question 2: Logo impression or ease of navigation?

When the main pages fit in one row, this question decides the layout.

PriorityPattern
Easy navigation and a contact entrance that is easy to findHorizontal header
The shop or brand name making its impression at the center of the headerCentered-logo header
Showing photos or work large, with the menu set vertically on the leftVertical side-nav header
Showing the first-screen photo without cutting it off with the header (no background over the photo, switching to a white band once the photo is passed)Transparent header
Showing several contact entrances, such as phone, web booking and LINE, with their hours at the right edge of every pageContact-button header

Question 3: Does the header stay visible after scrolling?

Combined with the pattern chosen in questions 1 and 2.

After scrollingPattern to add
Long pages where people should move to other pages or get in touch while reading; keep the header at the top, shrunk to the essentials (or as is, if already low)Sticky header
Short pages, or you want the widest possible reading areaDo not keep it (any pattern works as is)
Long vertical pages such as articles and news, where you want the body to look wide while reading and the header to appear only when the reader scrolls back up a littleHide-on-scroll header

Question 4: How does the menu open on mobile?

Chosen separately from the desktop pattern.

How the mobile menu opensPattern
A few items opened and closed lightly, with the page behind still visibleA list opening under the header (the mobile form of the horizontal, two-tier or dropdown header)
Large, easy-to-tap items, with the contact entrance and details inside the menuFull-screen menu header
A few pages people go back and forth between, reached without opening a menuBottom tab bar

Header patterns compared

PatternRoleFormTypical sites
Horizontal headerLayoutLogo, menu and contact button in one rowSmall-business corporate sites, service sites, office sites
Centered-logo headerLayoutLogo in the center, menu split to either sideRestaurants, salons, hotels, fashion
Two-tier headerLayoutContact details on top, main menu beneathProfessional practices, clinics, builders, schools, organizations
Dropdown headerShowing hierarchyChild pages open in a single column under each categoryCorporate and service sites with child pages
Mega menu headerShowing hierarchyChild pages in a large panel, grouped and describedCompanies with many services, manufacturers with many products
Sticky headerBehaviorShrinks and stays at the top while scrollingSites with many long pages
Full-screen menu headerHow the menu opensA menu covering the whole screenBrand and shop sites (mainly mobile)
Bottom tab barMobile placementMost used pages as tabs at the bottom (header on desktop)Member sites, services used repeatedly
Vertical side-nav headerLayoutLogo and menu stacked vertically on the left and fixedSites that show photos or work large
Transparent headerHow it overlaps the photoNo background over the photo, switching to a white band once the photo is passedInns, brand sites, showrooms, facilities
Contact-button headerContact entrancePhone, web booking and LINE at the right edge, with their hoursClinics, dental offices, professional practices, repair services, inns
Hide-on-scroll headerHow it looks after scrollingHides when reading down and returns when scrolling back up a set amountNews, media, sites with many long articles

Design principles shared by every pattern

These principles came up again and again while building the header patterns, whatever the pattern. Whichever one you choose, check the same points.

  • Wrap the site-wide top in a header element and mark the main navigation with nav. With several nav elements, give each a distinguishing name such as "Main menu" or "Secondary menu"
  • Put aria-current="page" only on the link to the current page itself. If the parent item is highlighted while viewing a child page, treat that as a separate visual "current section" mark
  • Do not fix the number of menu items; use what fits readably in one row. When there are too many destinations to fit, consider a hierarchy rather than more rows
  • Build toggles as buttons with aria-expanded and aria-controls. Do not rely on icons or symbols alone; let the button name convey the action and state too
  • A hover-opened list must be usable by moving the pointer into it, must not vanish during use, and must close with Esc. It must also open on press and by keyboard
  • A non-modal menu opening under the header needs no focus trap. A full-screen menu is a modal: keep focus inside and return it to the opening button on close
  • Style the main action, such as the contact entrance, apart from the menu items and match its wording to the destination. On mobile, keep it outside the menu when it fits the header comfortably
  • Do not stack too many fixed elements: sticky header, sticky contact button, bottom tab bar. What stays should be shrunk to the essentials, with padding so headings and focus are never hidden
  • Keep tap areas about 44px tall. Make toggle buttons as easy to press as the items
  • If the logo is an image, make its alt text the shop, company or brand name, not "logo". Show phone numbers as text with a tel: link where dialing is possible
  • Check at in-between widths, not only large desktop screens, that items do not wrap, and decide where to switch to the mobile layout

Example combinations

  • A small-business corporate site: put the main pages and contact button in one row with the horizontal header, opening a list under the header on mobile. With many long pages, keep it shrunk at the top in the form of the sticky header
  • Professional practices and clinics: use the two-tier header with the phone number and hours on top and the main pages beneath; if it stays at the top, keep only the lower row
  • Companies with many services: use the dropdown header for categories with few child pages and the mega menu header for those with many, category by category
  • Restaurants, salons and hotels: show the name at the center with the centered-logo header, and on mobile gather the booking entrance and contact details in the full-screen menu
  • Member sites and services used repeatedly: the horizontal header on desktop and the bottom tab bar on mobile, with the most used pages and contact entrance at the bottom and other pages reached from the menu at the top

FAQ

Which question should I start with?

Question 1: the number and depth of the main pages. Once the desktop layout is settled, question 3 decides what happens after scrolling and question 4 how the menu opens on mobile.

Can patterns be combined?

Yes. Layout, hierarchy, scroll behavior and the mobile menu are separate axes, so a horizontal header can shrink and stay in the sticky form while using the full-screen menu on mobile, for example. Just check that fixed elements do not pile up on screen.

Full-screen menu or a list under the header on mobile?

To show items large, or to gather the contact entrance and details inside the menu, the full-screen menu header suits. To open and close a few items lightly, or keep the page behind visible, a list under the header is easier. The full-screen menu is a modal, which adds focus and background handling to verify.

How does the header's contact button relate to the CTA patterns?

The header's contact button is a CTA placed on every page. The same thinking applies: matching the button wording to the destination, ranking primary and secondary actions. See how to choose a CTA pattern for more.