Building a Website Page - Header

What is a Header

As the name suggests a Header is found at the head (top) of each webpage. But it's important that we don't confuse it with the Head element part of the html page which contains information about your webpage for browsers (go to Step 1. The basics to see more about the Head element).

The <header></header> is the first area in the Body section of the html webpage, where your websites visible content is placed. No matter how a website looks or is styled all headers tend to follow the same pattern with regards to its core features and functionality.

an outline drawing showing the header, main and footer areas of a website page

The header is usually the first part of your website a user will see. So it should clearly define your company's branding by displaying your name / logo this helps users to immediately identify you. It should also contain the main navigation to your websites primary subpages. Repeating this same header across every pages will make your site easier to navigate, plus help to further establish your brand and create a consistent browsing experience accross your whole website.

Some other features you may find in a header are

Many of these are often represented by small image icons so as not to distract of your branding, or take too much space from your main navigation. Whilst offering your users easy access to more features and a better user experience.

Headshot image of Cupcake Tom my website customer

Tom's Website

To start with we need to make sure we have all the contents and info needed to start the website build. Luckily I have also designed Toms company logo and other branding plus sourced some images to use, so I already have all the contents I need to crack on. So lets make a start with Toms header section.

Tom's Header

We've just found out what items you may find in a header section so the first thing I need to do is establish which of these I will be putting into Toms header.

This was done during our design meetings and the decision was made that Tom wanted just his logo, shop phone number and site navigation. We then went over which areas of the bakery Tom thought were important and wanted to promote through his website. This then helped me establish what other primary subpages his website would require and consequently the nav options in his main navigation.

Logo - Is most commonly found to the left or centre of the header, We've chosen to sit it on the left. To help it to stand out it has been placed by itself with plenty of clear spacing around it, making it easier for users to recognise your brand and know that they're on the correct website.

screenshot of cupcake cat bakery logo in the header

Contact Details - Are often found along the top or bottom edge of a header in the form of a phone number, email or postal address. We've placed the shops phone number in the right top corner, this saves users needing to click and search across more than one page if trying to contact Tom. The easier a user can find the information they want the more likely they are to continue to use your website and business.

screenshot of cupcake cat bakery contact number in the header

Navigation - Finally we have the main navigation to the primary subpages, the key points of good navigation are easy to read text, good contrast against the background colour, concise labelling of the page subjects, good clear contrast when hovering / clicking and a visual indication / highlighting of the page you are currently on.

Our navigation covers these criteria well, with it's use of dark blue text on a white background, this changes to white text with an orange background when you hover a nav link or a blue background when highlighting the page you are currently on.

screenshot of cupcake cat bakery main navigation in the header screenshot of cupcake cat bakery's full header in desktop and laptop view

This picture above shows us how the contents of the header are positioned for larger screens, all nicely spread out with plenty of white space around each element making it easy to read and use. Unfortunately this layout just wouldn't work on small screen devices such as mobiles and tablets. So we have to make sure our design is responsive, this means that we make our layout flexible so it fits and looks good across all sized devices as in this picture below.

screenshot of cupcake cat bakery's full header in mobile and tablet view

You can see how the layout of the header is now slightly different in the mobile view. The logo has moved and is now centred and the navigation has moved below the logo and now spans the whole screen, though the phone number stays in its same top right position. If we hadn't made these changes the navigation and logo would just be crushed up and over lapping each other and not either pretty or usable.

Well that's the header built now we need to add some style and contents to the main part of the webpage in step 4.

Top of Page