Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Visual hierarchy on a web page: layout that guides the eye

Updated · 7 min read

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

How do you create visual hierarchy on a web page?

Rank first, design second. Write down what a visitor must notice, in order, then give each item matching emphasis. Nielsen Norman Group (NN/g), a usability research firm, defines visual hierarchy as arranging a page so the eye takes in each part by importance. Its three tools are color and contrast, size, and grouping. Add position as a fourth: attention fades as people scroll.

ToolWhat it doesRule of thumb
SizeBigger things get seen firstThree text sizes; no more than two big elements (NN/g)
Color and contrastStrong contrast pulls the eyeOne accent color, saved for the main button
Spacing and groupingThings close together read as one groupLittle space under a heading, more space between sections
PositionThe top of the page gets the most attentionPut what matters most near the top

On a typical service page, the ranking looks like this:

  1. What you do and where: the main heading.
  2. The action: one call, book or quote button.
  3. Proof: rating, review count, license, real photos.
  4. Details: prices, process, service area, FAQ.

For what the first screen should say, see landing page best practices. This page is about making the order visible.

Why does visual hierarchy matter?

Because most visitors scan. NN/g found the F-shaped pattern in eyetracking studies in 2006 and again in 2017, on desktop and phones: on a page of plain text, eyes run across the top, then down the left edge, skipping words on the right and lower down. Strong visual cues break the pattern.

Attention also drops as people scroll. NN/g's 2018 analysis of eyetracking data from 120 people on desktop screens found more than 42% of viewing time fell in the top fifth of a page.

Google asks the same question in its page experience self-check:

"Is your page designed so visitors can easily distinguish the main content from other content on your page?" (Google Search Central: Understanding page experience)

Size: how many font sizes should a page use?

Three: small for body text, medium for subheadings, large for the main heading. NN/g's web example: body 14–16 px, subheadings 18–22 px, main heading up to 32 px. Make the most important element the biggest, and keep big elements to two at most. If your logo, a slider caption and the page title are all large, nothing leads.

Color and contrast: what should stand out?

The thing you want clicked. NN/g notes that contrast with the surroundings, not the color itself, creates hierarchy. It suggests two main and two secondary colors for a simple site, and no more than three contrast variations even in complex designs: when everything is emphasized, nothing stands out. A practical rule: give your main button one accent color, use it nowhere else, and keep it the same on every page. Don't let color alone carry meaning; people with color blindness may miss it.

Contrast also has a floor. The W3C's accessibility standard (WCAG) sets it for text at Level AA:

"The visual presentation of text and images of text has a contrast ratio of at least 4.5:1" (W3C: Understanding Success Criterion 1.4.3)

Large text (18 pt, or 14 pt bold: about 24 px and 18.5 px) needs 3:1, and so does whatever shows where a button or form field is, such as an input's border (Success Criterion 1.4.11). Pale gray text on white is the usual failure. For what US and Ontario accessibility law requires, see ADA website compliance.

Spacing: is white space wasted space?

No. Space shows which parts belong together. Keep a heading close to the text under it and leave more room between sections, so each block reads as one unit. An item with more space around it gets more attention (NN/g), so give the main button room instead of crowding it with badges. A border or tinted background also groups things, but adds clutter.

For long text, WCAG's strictest level (AAA) lists readable settings: lines of 80 characters or fewer, line spacing of at least 1.5, paragraph spacing at least 1.5 times the line spacing, and no justified text (text stretched to both margins).

Headings: how they look vs. how they're coded

A heading looks important and is tagged as a heading (H1, H2, H3) in the page code. Keep the two in step.

"Headings communicate the organization of the content on the page. Web browsers, plug-ins, and assistive technologies can use them to provide in-page navigation." (W3C WAI: Headings tutorial)

It adds that skipping heading ranks "can be confusing and should be avoided where possible". So don't pick an H4 for its size; choose the level by structure and set the size in your site's styles. Start each heading with the words that carry the meaning, NN/g advises, so someone who reads only the first two still gets the point.

Google's Search engine optimization: work that helps your pages show up higher in the unpaid results on Google and Bing. More Starter Guide says heading order doesn't matter for Search (see on-page SEO for service pages). Prominence does count for the title Google shows in results:

"Google looks at various sources when creating title links, including the main visual title, heading elements, and other large and prominent text, and it can be confusing if multiple headings carry the same visual weight and prominence." (Google Search Central: Influencing your title links)

One clearly biggest heading per page solves both problems.

Visual hierarchy vs. content hierarchy

Content hierarchy is the outline: main topic, sections, details. Visual hierarchy is how the design makes that outline visible. If you can't write a page's outline in five lines, no styling will fix it.

Does visual hierarchy help SEO?

Indirectly, at best. Google's explanation of ranking says:

"When all other signals are relatively equal, content that people will find more accessible may perform better." (Google Search: How Search works, ranking results)

Google says it uses "aggregated and anonymized interaction data" to judge relevance, but it names no bounce rate or time-on-page signal. Treat a clear layout as a way to turn visitors into calls, not as a ranking lever.

Visual hierarchy on a phone

A small screen makes every choice stricter.

How to check your page's visual hierarchy

Five free checks, about 20 minutes:

  1. Squint test. Squint at the page, or blur a screenshot slightly; NN/g uses this to see what really stands out. The main heading and button should still win.
  2. Five-second test. Show the page on your phone to someone for five seconds, then hide it. Ask what you do, where, and what they would tap.
  3. Heading read. Read only the headings, top to bottom. They should tell the page's story on their own.
  4. Contrast check. Enter your text and background colors in WebAIM's Contrast Checker. It gives the ratio and pass or fail results for normal text, large text and buttons.
  5. Real behavior. Microsoft says Clarity "is a free service forever". Its scroll maps show how far visitors get down a page, and its heatmaps show clicks. If few people reach your button, move it up. To count the calls and bookings that follow, see GA4 key events.

Example

Illustrative cases with invented numbers.

A plumber's home page (US dollars)

The top shows a logo, a photo slider and "Welcome to Smith Plumbing"; the phone number is small gray text in a corner. In the squint test, the slider wins. The fix: main heading "Plumber in Mesa: same-day repairs", an orange "Call now" button as the only orange on the page, the star rating under it, then service cards priced "from $150".

A dental clinic's implant page (Canadian dollars)

Six headings share one size and color, and "Book a consult" and "Join our newsletter" are identical blue buttons. The fix: one large heading, "Dental implants in Calgary", smaller ones for cost (from C$3,000 per implant), process and recovery, and booking as the only colored button. The newsletter becomes a footer link.

An accountant's page on a phone

On desktop, a long bio sits left and a contact form right. On a phone the bio stacks first, the form lands four screens down, and Clarity's scroll map shows 1 in 5 visitors reach it. The fix: a two-line intro and a "Book a call" button on top, bio below.

FAQ

How many colors should a small business website use?

NN/g suggests limiting a simple site to two main and two secondary colors. Keep one accent color for the main action.

What is the F-pattern in web design?

How people scan plain text: across the top, then down the left side (NN/g eyetracking). Clear headings, bold key words and lists break it.

Do I need a designer to fix visual hierarchy?

Often not. Most fixes are builder edits: a bigger main heading, one button color, more space, fewer elements. Hire one when the template fights you.

Different for you?

Keep learning

NextSite search and content hubs: make content easy to findDoes your site need a search box, filters or hub pages? When each one helps visitors find content, how to add it, and how to keep Google crawling.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Nielsen Norman Group: Visual Hierarchy in UX: Definition (2021)
  2. Nielsen Norman Group: F-Shaped Pattern of Reading: Misunderstood, But Still Relevant (2017)
  3. Nielsen Norman Group: Scrolling and Attention (2018)
  4. Google Search Central: Understanding page experience in Google Search results
  5. Google Search Central: Influencing your title links in search results
  6. Google Search Central: SEO Starter Guide
  7. Google Search: How Search works, ranking results
  8. W3C: Understanding Success Criterion 1.4.3 Contrast (Minimum)
  9. W3C: Understanding Success Criterion 1.4.11 Non-text Contrast
  10. W3C: Understanding Success Criterion 1.4.8 Visual Presentation
  11. W3C: Understanding Success Criterion 2.5.8 Target Size (Minimum)
  12. W3C WAI: Headings tutorial
  13. WebAIM: Contrast Checker
  14. Microsoft Learn: Clarity overview
  15. Microsoft Learn: Clarity scroll maps