In the early days of the internet, a header was simply a navigational slip at the top of the page containing a logo, contact information, and the CTA button. Today, we consider everything that is "above the fold” to be part of the header.
The header is the first thing that users see when they come to your website. It should be informative and accurate so that users can understand what your page offers in a split second. Plus, the header should capture users' attention and encourage them to explore your product further. Studies show that users take less than 50 milliseconds to make their first opinion of a website. And the responsibility to make a good impression falls almost entirely on the website's header.
Get acquainted with the basics of designing headers with our Intro to Headers lesson. What type of header is best for your website depends not just on your aesthetic preferences but also on the type of product you want to sell.
Header Types
Although headers play the same role on websites — introduce the primary navigation, include CTA buttons, and represent the logo — there are different types of headers you can encounter on the Internet. It all depends on the type of your website and your brand style.
- Classic header
- Magazine-style header
- Hero header
- Vertical navigation drawer
- Header with a hamburger menu
- Sticky header
- Header with a double menu
1. Classic header
The classic header is the most popular and most recognizable type of header found on the web. It usually consists of a bare minimum: the logo, contact information, the CTA button, and links to basic categories of website content.
Where should you use it? Well, classic things never go out of style. Such headers are functional enough for landing pages or simple websites without a complex hierarchy.
Plus, classic headers comply with the most common eye-tracking patterns, like the Gutenberg pattern, Z-pattern, and F-pattern. The human eye starts to travel from the top-left corner and moves horizontally to the top-right — meaning that such a header becomes the strongest focal zone.
2. Magazine-style header
Magazine-style headers are an excellent choice for digital newspapers and magazines that want to preserve the retro styling of printed editions. A magazine-style header usually has an enlarged logo that sits separately from the navigational menu, the Subscribe button, and other elements like the Search icon.
3. Hero header
As the name suggests, a hero header sits where the hero image is placed. It results in a minimalist design that immediately draws users’ focus to the visuals in the center of the page. Hero headers are an excellent choice for simple websites, such as portfolios or landing pages.
Pay greater attention to picking the hero image. Besides being aesthetically pleasing, it should communicate the website's theme and value clearly.
4. Vertical navigation drawer
A vertical navigation drawer placed on the left represents a very flexible type of header. While this type of navigation fits almost any product, the sidebar menu is particularly beneficial for complex applications and websites. For example, you can encounter it in admin apps, desktop apps, and products where users can configure navigation options — think of Slack channels, Outlook folders, or Confluence hierarchical menus.
5. Header with a hamburger menu
Nothing is worse than a messy page with multilevel headers. The hamburger menu icon helps keep the header clear and concise and provides easy access to additional navigation options. Its mouthwatering name comes from its design — the three identical horizontal lines that made people think of hamburgers, and the name found its way into users' hearts.
To avoid friction, place the hamburger menu button in the left or top-right corner — because that's where users expect it to be. Regular website visitors understand the function of this button and don't have trouble finding the main categories. Headers with hamburger menus have an elegant, minimalistic look and save place for other essential layout elements. Such headers also conform to responsive and adaptive design principles, as they ensure that the UI looks uniform and cohesive on different devices.
Use hamburger menus cautiously as they can significantly affect user engagement. According to Nielsen Norman Group findings, products with hidden navigation are 20% less discoverable than sites with visible or combo navigation.
6. Sticky header
As the name suggests, sticky or persistent headers stay on top (or the bottom) of the page at all times and aren't affected by scrolling.
On the one hand, sticky headers are an excellent usability solution. They allow users to quickly access the main navigational categories, return to the home page, or search content without scrolling up to the top of the page. Compared to headers with hidden navigation (hamburger menu), sticky headers increase discoverability and lower the chance of users getting lost. Plus, they're an excellent choice for mobile interfaces, leaving the most critical actions at users' fingertips.
On the other hand, poorly implemented sticky headers can be annoying, take up too much space, and distract users from page content. Consider partially sticky headers that appear on scroll up. They still keep navigation accessible from anywhere on a page but don't get in the way when users scan the content.
7. Header with a double menu
A double menu in the header offers two levels of navigation. For example, it may provide primary and secondary levels of navigation in full view, which is particularly relevant for large websites with complex hierarchies. However, it's essential to find the right balance and not sacrifice clarity and scannability when trying to keep all navigational options visible. Conduct thorough user research to understand what your users need. A few extra clicks may not be a problem as long as they create a cleaner design and a positive user experience.
Header Design Best Practices
Here are some best practices to keep in mind while designing headers:
- Keep header height relative to the page size
- Maintain visual hierarchy
- Use a prominent CTA button
- Use relevant images
- Leverage readable fonts
1. Keep header height relative to the page size
It's hard to define perfect header height since it's impossible to guarantee the same size on all devices, not to mention the different screen resolutions. The trick is to control the header's height relative to the page size — the header should look proportionate without blocking essential content areas.
As for headers with large hero images, it's better to leave some space under the fold to intrigue users with a glimpse of what's next on the page and engage them to scroll.
On touchscreen devices, ensure that the touch target is at least 8-10mm (30-38px) and that the text is readable.
2. Maintain visual hierarchy
Research shows that users prefer predictable visual hierarchy over unique and unconventional designs. For example, according to NN group findings, traditional top-left logo placement is more comfortable for users and guarantees an 89% upraise in brand recall. You can experiment and place the logo in the header's center, but its recognition will still be lower than the top-left alignment.
The navigational menu should include only the most important links that help users understand where they can find all the information they need. Stick to the magic number of 7±2 items to prevent cognitive load and the agony of choosing between too many options. Use hover effects for menu links to provide visual feedback and help users navigate.
3. Use a prominent CTA button
The CTA button is another crucial element in the header’s hierarchy. There are a few things to consider when designing it:
- The CTA should have sufficient contrast to the rest of the page. We won't get tired of reminding you to follow WCAG recommendations on color contrast ratio. An acceptable minimum is 4.5:1, but it can vary based on the font size or target WCAG conformance level.
- Put some thought into the button's label. Use precise, task-related language to explain exactly what happens after users click or tap the button.
- Place the CTA where users expect it to be. The usual place for a CTA button is the top-right corner of the header. However, if you're settling on a minimalistic hero header, the CTA would sit right at the hero image in the limelight.
4. Use relevant images
Conventional wisdom says that a picture is worth a thousand words. Needless to say, relevant images can help prove the point. According to studies conducted by Richard E. Mayer on people's learning styles, individuals learn, recall, and retrieve information about an object better from words and pictures than words alone. So how to implement this in your header?
- Use images that are relevant to your business. A hero image isn't just a decoration — it's a powerful communication tool. Use it to convey the message to your users and explain what your product offers.
- Use high-quality images. This way, you show users your respect and willingness to provide the best content.
- Use pictures and illustrations that speak for your brand personality. Using on-point images doesn't mean you cannot be creative. When choosing pictures, make sure they evoke the emotions and mood you aim to create.
5. Leverage readable fonts
An excellent hero image or the most sellable CTA button won't be of use if users can't read button labels. That's why it's also important to choose easily readable fonts — don't sacrifice legibility in favor of aesthetically pleasing but vague and low-contrasting fonts.
Check your fonts for contrast with the Colorable tool or WebAIM first, so you can then adjust other colors on the website and be sure everything is impeccable from the accessibility perspective. Our Intro to Typefaces & Fonts blog can also be a good starting point to explore the world of readable fonts. If you find yourself looking for a more detailed study of the subject, consider taking our Typography Course.