In short
- Visual hierarchy is the order in which a design leads the eye, from the most important thing on the page to the least.
- People scan web pages before they read them, so the hierarchy decides what they take away in the first few seconds.
- The main tools are size, weight, colour, contrast, spacing, position and repetition.
- A page can have only one most important thing. If everything is emphasised, nothing is.
- The squint test shows the hierarchy at a glance: blur the page and see what still stands out.
Open any well-designed web page and your eye goes to the same places, in the same order, as everyone else's: the main heading, an image, a button, then the smaller headings below. That is not an accident. The designer has decided what matters most and used size, colour and space to make sure you see it first. The name for that ordering is visual hierarchy.
It is the most useful idea in web design to understand, because it explains why some pages feel clear and others feel like noise, even when they contain the same information.
What Is Visual Hierarchy?
Visual hierarchy is the arrangement of the elements on a page so that their importance is obvious. The most important element is the most prominent, the next most important a little less so, and supporting detail recedes until it is needed.
It matters because people do not read web pages from top to bottom. They scan. In a few seconds they decide what the page is about, whether it is relevant and where to look next. A clear hierarchy gives them the right answers. A weak one leaves them to work it out, and many will leave instead.
Every page has a hierarchy, whether it was designed or not. The only question is whether it matches what the business needs the visitor to notice. If an existing site buries its message, a website redesign is often less about new colours than about restoring that order.
The Tools That Create Hierarchy
| Tool | How it works | Typical use |
|---|---|---|
| Size | Larger things are seen first. | A main heading several times the size of the body text |
| Weight | Bold, heavy shapes carry more emphasis than light ones. | Bold headings, or a solid button beside an outlined one |
| Colour and contrast | An element that differs sharply from its surroundings draws the eye. | One accent colour reserved for the main action |
| Space | An element with room around it looks important. Crowded elements compete. | Generous margins around a headline or a call to action |
| Position | The top of the page and the start of each line get the most attention. | The offer and the main action at the top of the page |
| Repetition | Things that look alike are understood to be alike. | Every section heading in the same style |
| Imagery | Faces, movement and photographs pull attention more than text does. | A hero photograph that leads towards the headline |
How People Scan a Page
Eye-tracking research has found consistent patterns in the way people look at web pages. On pages full of text, attention tends to trace a rough F shape: across the top, across again a little lower down, then down the left-hand side. On simpler pages with little text, such as a landing page, the eye tends to move in a Z: across the top, diagonally down and across the bottom.
These are tendencies, not rules, and they are partly a symptom of pages that offer no better guidance. Their practical lessons are simple:
- Put the most important content at the top and towards the start of the line.
- Begin headings, links and list items with the words that carry the meaning.
- Break long text up with headings, so that scanning the left edge finds the next topic.
- Place the main action where the eye naturally ends up, usually at the end of the first screen and again at the end of the page.
Hierarchy in Type
Most of a website is text, so most of its hierarchy is typographic. A page needs a small number of clearly different levels: a main heading, section headings, sub-headings, body text and small print. The steps between them should be large enough to see at a glance. If a sub-heading is only slightly bigger than the body text, readers will not register it as a heading.
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { font-size: 1.125rem; line-height: 1.6; }
.small-print {
font-size: 0.9rem;
color: #5f6b7a;
}The visual levels should match the structure of the HTML: one h1 for the page title, h2 for the main sections and h3 within them. Screen reader users move through a page by its headings, and search engines read them to understand it, so a heading chosen because it looks the right size, and not because it is the right level, lets both down. Our guide to web typography covers type in more depth.
Hierarchy in Colour and Contrast
Colour creates hierarchy through difference. If a page is mostly neutral and one button is a strong colour, the button wins. If the page uses that colour for headings, icons, borders and three other buttons, it no longer points anywhere.
- Reserve one accent colour for the primary action on each page.
- Give secondary actions a quieter treatment, such as an outline or a plain text link.
- Use lower contrast to push supporting information back, but never so low that it is hard to read. Body text needs a contrast ratio of at least 4.5 to 1 against its background.
- Do not rely on colour alone to signal importance or status. Add a label, an icon or a change in weight.
Our guides to website colour schemes and call-to-action buttons take this further.
Hierarchy in Space and Grouping
Space is the quietest tool and one of the strongest. Elements placed close together are read as belonging together, and a gap signals a new group. A heading should sit nearer the paragraph it introduces than the one above it. A form label should sit nearer its own field than the field before.
Space also confers importance. A single sentence in the middle of an empty area carries more weight than the same sentence in a crowded column. This is why the most confident pages often look the emptiest, a subject covered in our guide to white space.
How to Test a Page's Hierarchy
- The squint test. Step back and squint, or blur a screenshot, until you cannot read the words. Whatever still stands out is your real hierarchy.
- The five-second test. Show the page to someone who has not seen it, for five seconds, then hide it. Ask what the page was about and what they could do there.
- The one-thing test. For each page, write down the single most important thing a visitor should notice. Check that it is the most prominent element.
- The greyscale test. View the page without colour. If the hierarchy collapses, it depends too heavily on colour and will fail for some visitors.
- The phone test. Check the order of the content in a single column. The hierarchy has to survive without the layout.
Common Hierarchy Mistakes
- Everything emphasised. Bold text, capital letters, bright colours and banners everywhere cancel each other out.
- Several competing calls to action. Three buttons of equal weight give the visitor a decision to make before they have decided anything.
- Timid headings. Headings that barely differ from the body text make a page look like one long block.
- A logo larger than the message. Visitors need to know what you do before they care what you are called.
- Centred everything. Centred text suits a short headline. Paragraphs and lists centred on the page lose the strong left edge that people scan.
- Decoration that outranks content. A background animation or stock photograph that draws more attention than the offer is working against the page.
Putting It Into Practice
Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.
Frequently Asked Questions
What is visual hierarchy in web design?
It is the arrangement of the elements on a page so that the most important are noticed first. Designers create it with size, weight, colour, contrast, spacing and position, so that a visitor can tell at a glance what the page is about and what to do next.
Why is visual hierarchy important?
Because people scan web pages instead of reading them. A clear hierarchy lets them find what they need in seconds, which makes a page feel easy to use and makes it more likely that they will take the action the page is there for. Without it, important information goes unnoticed however well it is written.
What are the main principles of visual hierarchy?
Size, weight, colour, contrast, spacing, position and repetition. Larger, bolder and more contrasting elements are seen first. Space sets an element apart, a position near the top gets more attention, and repeating a style tells the reader that things belong to the same level.
What is the F-pattern in web design?
It is a pattern found in eye-tracking studies of pages with a lot of text. Readers look across the top, across again a little further down and then down the left side, tracing a rough letter F. It is a reason to put key information at the top and at the start of lines, and to use clear headings.
How do I improve the visual hierarchy of my website?
Decide the single most important thing on each page and make it the most prominent. Give headings clear steps in size, keep one accent colour for the main action, group related items and add space around anything that matters. Then blur a screenshot and check that the right things still stand out.