Sub topic 7
Hierarchy, highlighting, and calls to action
This chapter assumes you know basic HTML and CSS and have seen a plan comparison table like the one built in the previous chapter. Here you decide where a visitor's eye goes first, second, and last, and how each plan's button helps them act.
Why hierarchy matters on a pricing page
A visitor scans a pricing page. They rarely read it. Visual hierarchy is the order in which the eye takes in elements, set by size, weight, color, contrast, and position. If every plan looks the same, the visitor must compare everything before choosing. A clear hierarchy does part of that work for them.
A comparison table has three jobs for the eye:
- Show the plan names and prices first.
- Let the visitor find one plan that fits them.
- Make the next step obvious.
Build hierarchy with a few strong signals
Use fewer signals, and use them consistently.
- Size and weight. Make the price the largest text in each plan column. Make the plan name second.
- Contrast. Keep feature text at a calmer weight so it does not compete with prices.
- Whitespace. Padding around the header cells separates plans from the rows below.
- Position. Put the call to action at the bottom of the header or the bottom of the column, and keep it in the same place in every plan.
Highlighting the recommended plan
A highlighted plan tells visitors which option most people choose. Pick one plan, usually the middle tier, and give it a clear visual difference: a border, a tinted background, and a short label such as "Most popular".
Highlight only one plan. If two columns are emphasized, neither stands out.
.plans .is-recommended {
background: #f3f7ff;
border-inline: 2px solid #2354d6;
}
.plans thead .is-recommended {
border-top: 2px solid #2354d6;
}
.plan-badge {
display: inline-block;
margin-block-end: 0.25rem;
padding: 0.125rem 0.5rem;
border-radius: 999px;
background: #2354d6;
color: #fff;
font-size: 0.75rem;
font-weight: 600;
}<th scope="col" class="is-recommended">
<span class="plan-badge">Most popular</span>
<span class="plan-name">Team</span>
</th>The badge is real text, so a screen reader reads it with the plan name. Color alone would not be announced.
Calls to action
A call to action (CTA) is the button or link that moves the visitor to the next step. Each plan needs one. Follow these rules:
- Use specific labels. "Start free trial" or "Choose Team" beats "Submit" or "Click here".
- Use real links or buttons. A CTA that goes to another page is an
<a>. One that submits a form is a<button>. - Make them distinct for assistive technology. Several buttons labeled "Choose plan" sound identical in a list of links. Add context.
<a class="cta cta-primary" href="/signup?plan=team">
Choose Team<span class="visually-hidden"> plan</span>
</a>Use a filled primary button for the recommended plan and an outlined secondary button for the others. This keeps one strong action in view without hiding the alternatives.
.cta {
display: inline-block;
padding: 0.625rem 1.25rem;
border: 2px solid #2354d6;
border-radius: 0.375rem;
font-weight: 600;
text-decoration: none;
}
.cta-primary {
background: #2354d6;
color: #fff;
}
.cta-secondary {
background: #fff;
color: #2354d6;
}Common errors
- Highlighting the most expensive plan only because it earns the most, when it does not fit most visitors.
- Giving every CTA the same filled style, so nothing leads the eye.
- Relying on color alone to mark the recommended plan.
- Low contrast between button text and background. Check that text meets a 4.5:1 contrast ratio.
Exercise
A pricing table has three plans, and all three have a bright filled "Get started" button and a colored border. Visitors report they cannot tell where to begin. Name two changes that would improve the hierarchy.
Show answer
Highlight only one plan, usually the middle one, with a border, tint, and a text badge such as "Most popular". Give that plan the filled primary button and make the other two outlined secondary buttons. Optionally, make the CTA labels specific, for example "Choose Team".