Sub topic 7
Hierarchy, Highlighting, and Calls to Action
This chapter assumes you can write basic HTML and CSS, know how subscription products are sold, and understand responsive layout. It also assumes you have already chosen your tiers and features. Here you decide what the eye sees first, which plan stands out, and what each button says.
Why hierarchy matters on a pricing page
A comparison table holds a lot of information. A visitor with a goal, such as "find the cheapest plan that supports my team," will not read every cell. They scan. Visual hierarchy is the set of size, weight, color, spacing, and position choices that tell the visitor what to look at first, second, and third.
On a pricing page the order you usually want is:
- The plan names and their prices.
- The recommended plan, if you have one.
- The call to action (CTA) for each plan.
- The feature rows that separate one plan from another.
- Secondary content such as footnotes and links to the full feature list.
If everything is bold, nothing is. Most pricing pages fail because every plan has the same visual weight and every button the same color, so the visitor must read everything to decide.
Building hierarchy inside a plan column
Each plan column has a header block. Give it a predictable internal order so visitors learn the pattern once and reuse it across plans.
| Element | Role | Typical treatment |
|---|---|---|
| Plan name | Identifies the plan | Medium weight, moderate size |
| Price | The main fact | Largest text in the column |
| Billing note | Qualifies the price, such as "per user / month" | Small, muted but still readable |
| One-line audience | Says who the plan is for | Small, one line |
| CTA | The next step | Button, full column width |
Two rules keep this block readable.
- Make the price the largest element, not the plan name. Visitors compare prices across columns, so prices should line up on the same horizontal line.
- Keep the billing note next to the price. A bare "$15" with the unit placed far away invites misreading.
Because plan descriptions vary in length, columns can end up misaligned. In a real <table>, the header cells share a row, so alignment comes for free. If you build the header with cards instead, use CSS grid with subgrid or fixed minimum heights so prices and buttons line up.
Highlighting the recommended plan
Highlighting one plan is a form of guidance. It answers "which one do most people pick?" and reduces the effort of choosing. A good highlight has three properties.
- It is singular. Highlight at most one plan. Two highlighted plans cancel each other.
- It is honest. The plan you highlight should actually fit the largest group of visitors, not simply the one with the best margin.
- It is not color alone. About 1 in 12 men has some form of color vision deficiency, and a highlight that depends on hue will be missed by some of them and by anyone using a high-contrast mode. Combine color with a border, a label, or a size difference.
The following CSS highlights the Team column using a border, a text badge, and a subtle background. Each of these survives the loss of color.
<div class="table-wrap">
<table class="plans">
<caption>Compare plans</caption>
<thead>
<tr>
<th scope="col"><span class="visually-hidden">Feature</span></th>
<th scope="col">Starter</th>
<th scope="col" class="recommended">
Team
<span class="badge">Most popular</span>
</th>
<th scope="col">Business</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Projects</th>
<td>3</td>
<td class="recommended">Unlimited</td>
<td>Unlimited</td>
</tr>
</tbody>
</table>
</div>.plans .recommended {
background: #f1f6ff;
border-left: 2px solid #1a56db;
border-right: 2px solid #1a56db;
}
.plans thead .recommended {
border-top: 2px solid #1a56db;
}
.plans tbody tr:last-child .recommended {
border-bottom: 2px solid #1a56db;
}
.badge {
display: block;
margin-top: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
color: #1a56db;
}The badge is real text inside the header cell, so a screen reader announces "Team Most popular" when it reaches that column header. That is useful information for everyone, not only sighted visitors.
Edge cases with highlighting
- Sticky headers. If your header row is sticky, give the highlighted header a background that is fully opaque. A transparent background lets scrolled rows show through.
- Borders in collapsed tables. With
border-collapse: collapse, borders on cells merge unpredictably. Theseparatemodel used in the earlier chapter keeps the highlight border under control. - Small screens. A highlight made by making the column wider breaks on narrow viewports. Prefer a border and badge, which scale down cleanly.
Calls to action
A call to action is the control that moves the visitor to the next step. On a pricing page, each plan needs one, and its wording and placement matter more than its color.
Write labels that describe the outcome
A label like "Submit" or "Select" tells the visitor nothing about what happens next. Better labels name the action and, where it helps, remove fear.
| Weak label | Stronger label | Why |
|---|---|---|
| Select | Start free trial | States what happens |
| Buy | Get Team | Names the plan |
| Contact | Talk to sales | Sets expectation of a conversation |
| Submit | Create account | Describes the result |
If a plan is free, say so: "Start free." If a trial needs no card, say that near the button, because the credit-card question is a common reason to hesitate.
Differentiate primary and secondary CTAs
Use one primary style, a solid filled button, for the recommended plan. Use a secondary style, an outlined button, for the other plans. This reinforces the highlight without hiding the other options. The enterprise plan often uses "Talk to sales" as a secondary button, since it leads to a conversation, not a checkout.
.btn {
display: block;
width: 100%;
padding: 0.75rem 1rem;
border-radius: 0.375rem;
border: 2px solid #1a56db;
font-weight: 600;
text-align: center;
text-decoration: none;
}
.btn-primary {
background: #1a56db;
color: #fff;
}
.btn-secondary {
background: #fff;
color: #1a56db;
}
.btn:focus-visible {
outline: 3px solid #111;
outline-offset: 2px;
}Make each CTA unambiguous to assistive technology
Four buttons that all read "Get started" are indistinguishable in a screen reader's list of links. Give each one a unique accessible name. The simplest method is to add visually hidden text.
<a class="btn btn-primary" href="/signup?plan=team">
Start free trial<span class="visually-hidden"> for the Team plan</span>
</a>Use aria-label only when you cannot add text, because a label replaces the visible text and can drift out of sync with it. Also make sure the visible words appear at the start of the accessible name, so voice-control users who say "click Start free trial" succeed.
Use links for navigation, buttons for actions
A CTA that goes to a sign-up page is a link (<a href>). A control that changes something on the current page, such as the billing toggle, is a <button>. Mixing them up breaks expected keyboard and screen reader behavior.
Repeat CTAs in the table body
In a long comparison table, the header CTA scrolls out of view. Repeat the buttons in a final table row, or keep the header sticky as in the earlier CSS chapter. Without this, a visitor who has just finished reading the feature rows has to scroll back up to act.
Hierarchy across the whole page
The principles repeat at page level. A common order is:
- A short heading and a one-sentence promise.
- The billing toggle, if you have one.
- The plan cards or comparison table.
- Trust content, such as the FAQ and guarantees.
- A closing CTA for visitors who read to the bottom.
Do not hide the price behind a click. The page exists to show prices, and the highest-value element should appear without scrolling on a typical laptop screen.
Common mistakes
- Equal emphasis everywhere. Every plan has the same border, size, and button style, so nothing guides the visitor.
- Highlighting by color only. The highlight disappears for some visitors.
- Vague CTA text. "Select" and "Submit" force the visitor to guess.
- Low-contrast buttons. Text on a button needs at least a 4.5:1 contrast ratio against its background under WCAG.
- Too many primary buttons. Several filled buttons compete, and the primary style loses meaning.
- Tiny tap targets. On touch screens, buttons should be at least 44 by 44 CSS pixels so they are easy to hit.
Exercise
Your pricing table highlights the Team plan with a blue background only. A reviewer says it fails for some visitors. Name the problem and give two changes that fix it without removing the blue.
Show answer
The highlight relies on color alone, so visitors with color vision deficiency or in high-contrast mode may not see it. Add non-color cues, for example a 2px border around the column and a text badge such as "Most popular" or "Recommended" in the header cell. A size difference or a different button style also works.
Exercise
A pricing page has three buttons that each read "Get started" and link to different sign-up URLs. Why is this a problem for screen reader users, and how do you fix it while keeping the visible text unchanged?
Show answer
A screen reader's list of links will announce three identical names, so the user cannot tell which plan each leads to. Add visually hidden text inside each link, such as " for the Starter plan", so each accessible name is unique and still begins with the visible words "Get started".