0
Web Design · Website Anatomy

Website Header: What to Include, Design Best Practices and Examples

The website header is the strip at the top of every page that tells visitors where they are, who you are and where they can go next. This guide covers what a website header should include, how it differs from the navigation bar and the hero section, logo and menu choices, mobile and sticky headers, sizes, accessibility, speed, SEO and website header examples by layout.

By the GoSocial team20 min read
Website header: website header design and website header examples – United States
Website header guide: what to include, website header design best practices and website header examples for business websites across the United States.
Quick answer

A website header is the area at the top of every page that holds the logo, the main navigation and usually one action, such as a button or phone number. A good header is short, consistent across pages, readable on a phone, usable with a keyboard and never hides the content people came for.

Visitors rarely notice a good header. They notice a bad one. The menu that hides the page they want, the logo that pushes everything down on a phone, the sticky bar that covers half the screen, the phone number they cannot tap. The header appears on every page of the site, so its small problems are repeated on every visit.

It is also the one part of the site that every other page depends on. The hero section below it makes the first promise, the website footer catches the people who scroll to the end, but the header is the frame around both. This guide treats it as a working tool, not decoration.

What is a website header?

A website header is the top section of a web page, repeated across the site, that identifies the business and gives visitors a way to move around. On most business websites it contains the logo, the main menu and one call to action. Some headers add a search field, a language switch, a cart icon or a thin bar above with contact details.

In HTML, the header is usually marked up with the header element. When that element sits directly inside the page body, browsers and screen readers expose it as the page’s banner, a landmark that assistive technology users can jump to and skip past. The MDN reference for the header element explains how that mapping works.

Designers also call it the site header, the top bar, the masthead or the global header. When people search for “what is the header of a website called”, they usually mean this same strip. The names differ, the job does not: identify, orient and offer the next step.

The header has three jobs on every page: tell visitors whose site this is, show them where they can go, and offer one obvious next step. Anything that does not serve one of those jobs is a candidate for removal.

Website header vs navigation bar vs hero section vs banner

These words get mixed up in briefs and in search, and the confusion causes real design mistakes. A team asks for a “bigger header” and gets a taller navigation bar when what they wanted was a stronger hero. Here is how the parts relate.

PartWhere it sitsWhat it doesRepeats on every page?
Website headerTop of the pageHolds the logo, menu and main action; orients the visitorYes, with the same structure
Navigation bar (navbar)Usually inside the headerThe list of links to the main sections of the siteYes
Hero sectionDirectly below the headerThe headline, short promise and first call to action of that specific pageNo, each page has its own
BannerVariesEither a large image area (often a synonym for hero) or a thin notice bar for a promotion or alertSometimes
Page title (H1)Usually inside the heroNames the topic of the pageNo, unique per page

So the website header vs navigation bar question has a simple answer: the navbar is usually one component of the header. The header vs hero question matters more. The header is global and modest; the hero is local to each page and does the persuading. If you try to make the header persuade, it grows, and every page pays for it.

One more term: the page header. Some people use it for the title area of an inner page, the band with the page name and breadcrumb. That is closer to a small hero than to the global header, and the two should not compete for attention.

What should be in a website header?

Start from the smallest header that does the three jobs, then add only what your visitors need on every page. For most business websites, that means four core elements and a short list of optional ones.

The core elements

  1. Logo linked to the homepage. It identifies the business and gives visitors a reliable way back to the start.
  2. Main navigation. Links to the handful of sections that matter most, labeled in the words your customers use.
  3. One primary action. A button for the step you most want, such as booking a call, requesting a quote or ordering.
  4. A mobile version of the menu. A clear way to open the navigation on small screens, with a visible label or a recognizable icon.

Optional elements, and when they earn a place

  • Phone number. When customers call before they buy, as with local services, healthcare or urgent repairs.
  • Search. When the site has enough pages or products that browsing the menu is slower than typing.
  • Cart and account icons. On online stores and member sites, where they are part of the main task.
  • Language or region switch. When you publish real versions of the site for different audiences.
  • Utility bar. A thin strip above the main header for hours, a service area, a login link or a short notice.
  • Social icons. Rarely. They send visitors away from the site at the moment you want them to explore it. The footer is usually a better home for them.

The test for each optional item is the same: would a typical visitor on any page of the site need it within reach? If the answer depends on the page, the element belongs in that page’s content, not in the header.

What to put in the header by type of business

The core stays the same, but the right action and the useful extras change with how your customers buy. This is where generic header templates fall short, because they assume every business wants the same button.

Type of businessPrimary header actionUseful extrasOften left out
Local home servicesRequest a quote or callTappable phone number, service area in a utility barSocial icons, long menus
Professional services (law, finance, consulting)Book a consultationPhone number, practice areas in the menuPromotional banners
Real estate agents and loan officersSearch homes or get pre-qualifiedPhone, listings link, contactToo many market pages in the menu
Online storeSearch and cartAccount, shipping notice in a utility barLarge logo blocks
B2B and softwareBook a demo or contact salesLogin, product and pricing in the menuPhone, if sales run by appointment
Restaurants and hospitalityReserve or orderHours, location, menu linkDeep dropdowns

For real estate, the header usually carries a search or listings link because that is what visitors come for; our guide to real estate websites covers how agents and loan officers structure the rest of the site. For service companies, the header button and the services page work as a pair: the menu leads to the service, the button leads to the conversation.

The logo sits at the top left on most sites, because that is where readers of left-to-right languages start scanning and where visitors expect the link back to the homepage. Centered logos work for some brands, such as fashion and hospitality, but they split the menu into two halves and leave less room for links.

Three practical rules matter more than placement:

  • Use a horizontal version. A stacked logo with a large symbol above the name forces the header to grow taller. Most brands have, or can have, a horizontal lockup for the header.
  • Use a vector file. An SVG logo stays sharp on high-density screens and is usually lighter than a large image. If you must use a raster image, export it at twice the display size.
  • Write useful alternative text. The logo link’s text should say the business name, and screen readers will announce it as a link. Our guide to image alt text covers the cases where the name is already in the text next to it.

Search engines do not pick your logo from the header image. Google reads the logo for search results from Organization structured data in the page code, so the header logo and the logo in your markup should simply be the same file.

There is no official number, and any article that gives you one as a rule is guessing. What usability research does support is that people scan menus quickly and pick the label that best matches what they want. Fewer, clearer labels make that choice easier.

In practice, most small and mid-sized business sites work well with the main sections a buyer needs: what you do, proof of your work, who you are and how to reach you. If your menu keeps growing, the problem is usually the site structure, not the header. Our guide to what pages a website should have sorts the essential pages from the ones that belong in the footer.

Labels

Use the words customers search for, not internal names. “Services” beats “Solutions”. “Kitchen Remodeling” beats “Culinary Spaces”. A visitor should be able to predict what is behind a label before clicking it.

Dropdowns and mega menus

Dropdowns are fine when they group a small set of related pages, such as individual services under “Services”. They become a problem when they hide the most important pages two levels deep, or when they open on hover with no way to open them by keyboard or touch. A mega menu, the large panel with many links, makes sense for stores and large content sites, and rarely for a business with a handful of services.

Whatever you put in the header menu, the same pages should also be reachable through normal links in the content. The header is one path, not the only path. Our internal linking strategy guide explains how the menu, the body text and the footer share the work.

The header button and the phone number

A single button is enough. Two buttons of equal weight make visitors choose between your own offers, and a row of three looks like a form. If you need a secondary action, make it a plain text link and let the button carry the main one.

The label should say what happens after the click: “Book a call”, “Get a quote”, “Schedule a visit”. Generic words like “Submit” or “Learn more” give the visitor no reason to act. Our guide to the website call to action covers wording, contrast and placement in more depth.

Phone numbers that work on a phone

A phone number in the header should be a real link with the tel: scheme, so a visitor on a mobile phone can tap it to call. A detail that teams often miss: the number people read and the number the link dials do not have to look the same. On our own site the visible number is written as ten digits, the way people in the United States say it, while the link includes the +1 country code so the call connects from any phone.

Track that tap. A click on a phone link is one of the clearest signals of intent a website produces, and it is invisible unless you measure it as an event in your analytics.

Mobile header design: what stays visible on a phone?

On a phone, the header has a fraction of the width it has on a desktop, and every pixel of height it takes is a pixel the content does not get. Google also uses the mobile version of a page for indexing, so the mobile header is not a reduced copy of the real one. For most visitors, it is the real one.

A workable mobile header usually keeps three things visible: the logo, the menu control and the single most important action, often a call or booking button. Everything else moves inside the opened menu.

The hamburger question

The three-line menu icon is widely recognized, but hidden navigation is used less than visible navigation; usability studies, including work published by the Nielsen Norman Group, have found that hiding links lowers how often people find them. That does not mean you should cram links into a phone header. It means you should keep the most important action out of the hidden menu, and consider adding the word “Menu” next to the icon.

Inside the opened menu

  • Show the main sections as large tap targets, one per line.
  • Let dropdown groups expand in place rather than opening new layers.
  • Repeat the main action and the phone number at the bottom of the menu.
  • Make sure the menu can be closed with a visible button and with the Escape key on devices with a keyboard.
  • Prevent the page behind from scrolling while the menu is open, and return focus to the menu button when it closes.

Test on a real phone, not only in a resized desktop browser. Tap targets that look fine with a mouse can be hard to hit with a thumb, and a header that fits at one width can wrap into two lines at another.

Sticky header: when it helps and when it hurts

A sticky header stays attached to the top of the screen while the page scrolls. It keeps navigation and the main action within reach on long pages, which is why it is common on stores and content sites. It also takes screen space permanently, which hurts most on phones in landscape and on small laptops.

There is also an accessibility rule that sticky headers often break. WCAG 2.2 added success criterion 2.4.11, Focus Not Obscured (Minimum), at Level AA: when an element receives keyboard focus, it must not be entirely hidden by content the author created. A sticky header that covers the link a keyboard user just tabbed to fails it. The W3C explanation of Focus Not Obscured lists sticky headers and footers as the classic case.

How to keep a sticky header and pass

  1. Keep it short. A compact sticky bar covers less of the page than the full header shown at the top.
  2. Reserve space when scrolling to targets. The CSS property scroll-padding-top, set to the header’s height, stops in-page links and focused elements from landing underneath it.
  3. Consider hiding on scroll down. A header that slides away while the visitor reads and returns when they scroll up gives the space back without losing the menu. Our own site uses this pattern for its top bar.
  4. Test with the keyboard. Tab through a long page and watch whether any focused link disappears under the bar.

The stricter version, 2.4.12 at Level AAA, requires the focused element to be fully visible. Aim for it where you can; the fixes are the same.

Website header size: height, logo size and image size

People search for a standard website header size, header height or header image size more than almost anything else on this topic. The honest answer is that there is no standard. No browser, search engine or accessibility rule defines a required header height or logo size, and the right numbers depend on your logo shape, menu length and layout.

What you can work from are a few real constraints:

  • Tap targets. WCAG 2.2 success criterion 2.5.8, Target Size (Minimum), at Level AA, asks for pointer targets of at least 24 by 24 CSS pixels, or enough spacing around smaller ones. The stricter AAA criterion asks for 44 by 44. The W3C guidance on target size explains the spacing exception. Menu links, the menu icon and the phone link should all clear it.
  • Readable text. Menu labels should be large enough to read on a phone without zooming, and the text should meet the WCAG contrast ratio of 4.5 to 1 against its background.
  • Screen height. On a phone in landscape, a tall header can leave only a thin strip for content. Check the header at that orientation before deciding its height.
  • Logo proportions. Size the logo by its height in the bar, so that a long horizontal logo and a compact mark both sit comfortably without forcing the bar to grow.

A “header image” usually means a hero or banner image, not the header itself. Those images should be sized for the largest layout they appear in, exported in modern formats and compressed. Size them for your own layout instead of copying a number from a template.

How to make a website header accessible

Because the header repeats on every page, its accessibility problems repeat too. A keyboard user who has to tab through twenty menu links on every page before reaching the content meets that barrier on every visit. These are the checks that matter most.

  • A skip link. The first focusable element on the page should be a “Skip to content” link that jumps past the header. It satisfies WCAG 2.4.1, Bypass Blocks, and costs a few lines of code.
  • Landmarks. Use the header element for the banner and a nav element with a clear label for the menu, so screen reader users can jump straight to them.
  • Keyboard access. Every link and dropdown must open and close with the keyboard, with a visible focus outline. Menus that only open on hover fail here.
  • Buttons that say what they do. The menu icon needs an accessible name, such as “Menu”, and should report whether it is open or closed.
  • Contrast. Light gray text on white and white text on a busy photo are common header failures.

Accessibility is part of how a site is built, not a widget added later. If your site needs a broader review, our older guide on how to create an accessible website covers the rest of the page.

The header and Core Web Vitals

The header loads first and sits above everything, so it can quietly damage the measurements Google uses for page experience. Two of the Core Web Vitals are directly affected.

Layout shift

Cumulative Layout Shift measures how much visible content moves unexpectedly while the page loads; web.dev treats a score of 0.1 or less as good. Headers cause shifts in predictable ways: a logo image without width and height, a web font that swaps and changes the menu width, a notice bar injected at the top after the page appears, or a header that changes height when it becomes sticky. The web.dev guide to Cumulative Layout Shift explains how to measure it and find the element that moves.

Loading speed

Largest Contentful Paint usually lands on the hero, not the header, but the header can delay it. Large logo files, menu scripts that must run before anything appears, and third-party tags loaded in the header all compete with the main content for the first moments of loading. Keep the header’s code small and let anything that is not needed for the first view load later.

Our guide to Core Web Vitals and SEO explains how these metrics are measured in the field and in lab tests.

Does the website header affect SEO?

Yes, in a few specific ways, and not in the ways people sometimes assume. The header does not need keywords stuffed into it, and adding more links to it does not make pages rank. What it does is shape how search engines and visitors understand the structure of the site.

  • Site-wide links. Pages linked from the header are linked from every page, which signals that they are central to the site. Put your main sections there, not pages you would like to rank for a single campaign.
  • Real links in HTML. Menu items should be normal links with an href, present in the page code. Menus built only from scripts or click handlers can be harder for crawlers to follow.
  • Text labels. A menu label written as text tells search engines what the destination is about. Icons alone do not.
  • One H1 per page. The logo or site name in the header should not be marked up as the page’s H1. The H1 belongs to the topic of each page, usually in the hero. Our guide to the SEO title tag explains how the title and the H1 work together.
  • Same content on mobile. If the mobile header hides links that the desktop header shows, make sure those pages are still linked somewhere on the mobile version.

For AI search, the header matters less than clear content, but it helps when your main sections have plain names that match how people ask about your business. Our SEO, AEO and GEO page explains how we prepare sites to be found in search and in AI answers.

Website header examples by layout

Instead of a gallery of other companies’ headers, here are the layouts that show up again and again, what each one is good for and where it breaks. Most website header design ideas you will find online are variations of these.

LayoutHow it looksWorks best forWatch out for
ClassicLogo left, menu center or right, button far rightMost business websitesMenu wrapping to two lines as pages are added
Centered logoLogo in the middle, links split on both sidesFashion, hospitality, brand-led sitesLittle room for links; awkward on tablets
Two-tierThin utility bar above the main barLocal services, multi-location businesses, storesExtra height; duplicate links in both bars
MinimalLogo and one button, no menuLanding pages and campaign pagesUsing it on a full website where visitors need to browse
Mega menuShort bar that opens large panels of linksStores and large content sitesHover-only panels; slow, heavy menus
Transparent over heroHeader sits on top of the hero imageVisual brands with strong photographyText contrast changing with every image
Side or docked navigationMenu moves to a vertical bar or panelPortfolios, apps, sites with a distinctive identityDiscoverability; must still work on phones

The minimal layout deserves a note. A campaign page often removes the menu on purpose so the visitor focuses on one offer. That is a deliberate choice for a landing page vs a website, and it should not leak into the main site, where visitors need to move around.

For finished examples across industries, including headers built for local services, real estate and online stores, browse our portfolio. Look at how each one handles the phone version first; that is where the decisions show.

Building the header: custom code or a WordPress theme

On a WordPress site, the header usually comes from the theme or from a page builder’s header template. That is quick to set up and easy to edit, and it is enough for many sites. The trade-off is that theme headers often load code for features you do not use, and some builder menus are hard to make fully keyboard accessible.

A custom-coded header is written for one site: the exact elements, the exact breakpoints, the exact behavior when scrolling. It is usually lighter and easier to make accessible, but changes go through a developer. A custom WordPress build can sit in between, with a header coded for the site and menu links still edited from the WordPress dashboard.

The choice is part of a bigger decision about how the whole site is built and maintained. Our comparison of a custom website vs WordPress walks through who maintains the site, what it has to do and who owns the code.

Before anything is built, the header should be drawn. A simple sketch of the desktop and phone versions, with every element named, settles most arguments early. Our guide to the website wireframe shows how to plan the header together with the rest of the page.

How to test a website header before launch

A header can look finished in a design file and still fail in a browser. Run these checks on the live staging site, on at least one real phone and one desktop.

  1. Every page. Open a sample of pages, including long articles and the contact page, and confirm the header is the same everywhere.
  2. Every width. Resize slowly from wide to narrow and watch for wrapped menus, overlapping elements and a logo that shrinks too far.
  3. Phone in both orientations. Check how much of the screen the header takes in landscape.
  4. Keyboard only. Use Tab, Enter and Escape to reach every link, open and close every menu, and confirm the skip link works.
  5. Screen reader spot check. Confirm the logo link, menu button and navigation are announced with sensible names.
  6. Taps and calls. Tap the phone number on a phone and confirm the right number dials; submit a test click on the main button and confirm the event appears in analytics.
  7. Speed and stability. Run a lab test on a key page and check whether any layout shift comes from the header.

Common website header mistakes

  1. Too many links. The menu becomes a site map, and the important pages get lost among the rest.
  2. Two equal buttons. The visitor has to choose between your offers before they know which one fits.
  3. A phone number that is not a link. Mobile visitors have to copy it by hand, and many will not.
  4. A sticky bar that is too tall. It takes a large share of the screen on every scroll and can hide focused links.
  5. Hover-only dropdowns. They do not work with a keyboard and behave unpredictably on touch screens.
  6. The logo as the H1. Every page ends up with the same main heading, and the real topic loses its signal.
  7. Late-loading notice bars. A promotion bar that appears after the page pushes everything down and adds layout shift.
  8. No skip link. Keyboard users have to pass the whole menu on every page.

If your site draws visitors but few of them get in touch, the header is one of several places to look. Our guide to a website not getting leads walks through how to find the real cause, from the offer to the form.

How GoSocial designs website headers

GoSocial is a custom web design company in Boca Raton, Florida, that has built custom-coded and custom WordPress websites for businesses across the United States since 2016. We build websites around buyer psychology, strengthened with SEO, AEO and GEO, and the header is one of the first pieces we settle, because every page inherits it.

We start from what the site has to produce. In discovery and strategy we decide the one action the header should offer, which sections earn a place in the menu and what the phone version keeps visible. Then we design and build it following the sequence on our web development page: discovery, strategy, architecture, design and content, development, testing, launch and measurement.

Every site launches with GA4 and Google Search Console connected, and with form submissions, phone clicks, WhatsApp clicks and bookings tracked, so the header’s button and phone link can be judged on what they produce. The domain, hosting account and code are yours, whether the site is custom-coded or custom WordPress, and another team can maintain it if you ever choose to.

Website header: FAQ

What should be in the header of a website?

Most business website headers need a logo linked to the homepage, the main navigation, one primary action such as a booking or quote button, and a clear way to open the menu on phones. Add a phone number, search, cart or a utility bar only when visitors need them on every page.

What is the difference between a website header and a hero section?

The header is the global strip at the top of every page with the logo, menu and main action. The hero section sits directly below it and is unique to each page, with that page’s headline, short promise and first call to action. The header orients; the hero persuades.

Is a website header the same as a navigation bar?

Not exactly. The navigation bar is the list of links to the main sections of the site, and it usually sits inside the header. The header also holds the logo, the main action and sometimes extras such as search, a cart or contact details.

What is the standard website header size?

There is no standard header height or logo size. Size the header around your logo and menu, keep it compact on phones, make every link and button at least 24 by 24 CSS pixels as WCAG 2.2 asks at Level AA, and check how much screen it takes on a phone in landscape.

Should a website header be sticky?

A sticky header helps on long pages where visitors need the menu or main action at any point. Keep it short, set scroll padding so it never covers focused or linked content, and consider hiding it while visitors scroll down. On short pages a normal header is usually enough.

Does the website header affect SEO?

Yes. Links in the header appear on every page, so they show search engines which sections are central. Use normal HTML links with text labels, keep the H1 for each page’s topic rather than the logo, avoid layout shift from the header, and make sure the mobile header does not hide important pages.

GoSocial

Custom web design company in Boca Raton, Florida, building custom-coded and custom WordPress websites for businesses across the USA since 2016.

WhatsApp Free Blueprint Back to top