Building a Website Page - Main Contents

Headshot image of Cupcake Tom my website customer

Toms Main Section

So lets have a look at all the elements that have gone into making the main part of this front page starting from the top we'll look at it section by section.

Section 1. ‐ Hero Banner

screenshot of cupcake cat bakery landing page hero image panel

This first section of the page contains

I've put the company name here as the h1 to make sure it is the first and most important title on the site for search engines to find.

The following tagline I've added as a bit of a fun gimmick and maybe isn't quite as meaningful as some folk say a tagline is intended e.g. as an added description to who or what you are and where you do it. But it works to pull you in with humour and at the same time is being a CTA (call to action) telling you to stop, look and treat yourself, sounds like a good plan to me!

The image of a cake in the background which takes up the whole div like this is referred to as a Hero image (explained below), and as a whole these three element make up my Hero Banner.

Hero Image

A hero image is designed to draw the eye and capture the attention of the user, a bit like a billboard advert or the jacket of a book. It is placed at the beginning of your page as a background image and usually covers the whole width of the screen. How much page height it's given will depend on your design choice. It is often used like a banner taking just a portion of a screen (like I have), or covers the whole page this style tends to have minimal page contents maybe just a heading, a small bit of text or a call to action (CTA) link.

In this case I have used an image of a cake the type you would expect to find in the Cupcake Cat Bakery. To make a hero image you will need to crop and resize your photo first otherwise you may end up with a squished, stretched misshaped image, with a file size that's likely to be way too big. Which won't be a good look or very mobile friendly.

Sizing & optimising our Hero image

To do this I opened my image folder selected my photo by double clicking on it, this then opened it in my computers photo application ready to do the following steps.

The image is now ready to use so I placed it in my CSS file as a background-image to my hero_panel and set it's position to top and centre. I then placed the h1 title central to this image then added a tagline below the title and now our first section of the page is done.

Top of Page