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.
| Tool | What it does | Rule of thumb |
|---|---|---|
| Size | Bigger things get seen first | Three text sizes; no more than two big elements (NN/g) |
| Color and contrast | Strong contrast pulls the eye | One accent color, saved for the main button |
| Spacing and grouping | Things close together read as one group | Little space under a heading, more space between sections |
| Position | The top of the page gets the most attention | Put what matters most near the top |
On a typical service page, the ranking looks like this:
- What you do and where: the main heading.
- The action: one call, book or quote button.
- Proof: rating, review count, license, real photos.
- 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.
- Columns stack. A photo or form beside your headline on desktop may land above or below it on a phone. Check that the button still shows on the first screen.
- Tap targets: WCAG 2.2 Level AA asks that buttons and links be at least 24 by 24 CSS pixels, with exceptions such as links inside a sentence. Its stricter AAA level uses 44 by 44.
- Cut before you shrink: drop a slider or a second button rather than make text smaller.
How to check your page's visual hierarchy
Five free checks, about 20 minutes:
- 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.
- 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.
- Heading read. Read only the headings, top to bottom. They should tell the page's story on their own.
- 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.
- 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?
- Visitors arrive but don't call or book: website not getting leads.
- You're building a page for ads: landing page best practices.
- You need to meet accessibility law in the US or Ontario: ADA website compliance.
- You want headings and titles that work for Google: on-page SEO for service pages.
- You run a clinic and want heatmaps or recordings: clinic website tracking and HIPAA.
- You'd rather have the page redesigned and tested: Website Agent.