Sub topic 5
Choose one primary call to action
A call to action (CTA) is the control that asks the visitor to take the next step. This chapter covers how to choose the one action your hero leads with, how to label it, how to mark it up, and how to keep secondary actions from competing with it.
It assumes you can write basic HTML and CSS and know roughly what a CTA is. It also assumes you have already defined the offer and written a headline and subheadline, since the CTA has to follow from them.
What the primary CTA does
The headline says what you offer. The subheadline says who it is for and how it works. The primary CTA gives the visitor a way to act on that offer. If the offer is "send invoices in under a minute," the natural next step is to try sending one.
A hero with several equal buttons makes the visitor decide before they have understood anything. A hero with one clearly dominant action turns the decision into a yes or no. That is why the plan calls for exactly one primary CTA.
Pick the action by working backwards from the offer
Start from what the visitor wants, then choose the smallest step that moves them toward it. Ask three questions:
- What would a convinced visitor do next? For a self-serve product, this is usually "start" or "sign up." For a product that needs a sales conversation, it is "book a demo."
- How much commitment does that step ask for? A free trial asks for less than a purchase. A demo request asks for less than a contract.
- Can the visitor tell what happens after they click?
When two actions seem equally good, choose the one that matches how most of your visitors arrive. Visitors who already know the product may want to log in. Most first-time visitors want to understand and try. Login belongs in the navigation, not in the hero.
Label the button with the outcome
A label like "Submit" or "Learn more" describes the mechanics of the interface. A good label describes what the visitor gets or does. It usually starts with a verb and fits in two to four words.
| Weak label | Why it fails | Stronger label |
|---|---|---|
| Submit | Says nothing about the result | Start free trial |
| Learn more | Defers the decision and goes nowhere specific | See how invoicing works |
| Click here | Describes the mouse, not the outcome | Create my first invoice |
| Get started | Vague about what starts | Start free trial |
| Sign up now | Pushes urgency without explaining the benefit | Try Ledgerly free |
"Get started" is common and not wrong, but it is only as clear as the context around it. If the headline and subheadline already make the product obvious, it works. If they do not, name the outcome.
Keep the label consistent with the rest of the hero. In the Ledgerly example, the headline promises speed, so "Create my first invoice" or "Start free trial" both fit. "Join the revolution" does not.
Write the note beneath the button
A short line under the button can remove the most likely objection. Ledgerly uses "No credit card required." Only write a note that is true and specific to the action. Good examples include "Free for 14 days," "Cancel anytime," and "Takes about two minutes." Do not add a note just to fill the space.
Mark it up as a link or a button
Choose the element by what the control does, not by how it looks.
- If it navigates to another page or URL, use
<a href>. Signing up usually goes to/signup, so it is a link. - If it runs an action on the current page, such as submitting an inline email form, use
<button>.
Styling a link to look like a button is fine and common. Making a <div> or <span> look like a button is not, because it loses keyboard focus and screen reader behavior. A <button> also should not be wrapped in an <a>.
<div class="hero__actions">
<a class="hero__cta" href="/signup">Start free trial</a>
<a class="hero__secondary" href="/product-tour">See how it works</a>
</div>
<p class="hero__note">No credit card required</p>The primary link comes first in the source order, so keyboard and screen reader users reach it first. The secondary link is a quieter option. The next section shows how to style them.
Keep the secondary action secondary
Many heroes include a second action, such as "Watch demo" or "See pricing." You may keep one if it serves visitors who are not ready for the primary step. It must look clearly less important. Two filled buttons of the same size give the visitor two equal choices again.
A common pattern is a filled button for the primary action and a text link or outline button for the secondary one. This CSS extends the hero styles from the layout chapter and adds the pieces specific to CTAs:
.hero__actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1rem 1.5rem;
}
.hero__cta {
display: inline-block;
min-height: 2.75rem;
padding: 0.875rem 1.5rem;
background: #0b5fff;
color: #fff;
border-radius: 0.5rem;
font-weight: 600;
text-decoration: none;
}
.hero__cta:hover {
background: #0847c4;
}
.hero__cta:focus-visible,
.hero__secondary:focus-visible {
outline: 3px solid #0b5fff;
outline-offset: 3px;
}
.hero__secondary {
color: #0b5fff;
font-weight: 500;
text-decoration: underline;
text-underline-offset: 0.25em;
}
.hero__note {
margin: 0.75rem 0 0;
font-size: 0.875rem;
color: #4a4a4a;
}Three details matter here:
min-height: 2.75rem(44 px at the default font size) gives touch users a target they can hit reliably.:focus-visibleshows a focus ring for keyboard users without drawing one on every mouse click.- The secondary action keeps the same blue but has no fill, so it reads as an alternative, not a rival.
Edge cases
Visitors with different needs. A product may serve both individuals and teams. Do not give each audience a hero button. Pick the audience that matters most to the business, make that the primary action, and send the other audience to a link lower on the page or in the navigation.
Sales-led products. If the visitor cannot try the product, "Book a demo" is the honest primary action. Say what the demo involves ("Book a 20-minute demo") so the commitment is clear.
Repeating the CTA. The navigation bar may carry the same action, for example a "Start free trial" button at the top right. This is fine because it uses the same destination and the same label. The hero must still have its own CTA, because it is where the visitor has just read the offer.
Forms in the hero. An inline email field plus a button can reduce steps, but it adds fields the visitor must understand. If you use one, give the input a visible or programmatic label, keep the button label outcome-based, and show clear error messages.
Loading and failure states. If the button submits a form, disable it only during submission and show that something is happening. Do not leave it permanently disabled for incomplete input without explaining why.
Common errors
- Two or three equally styled buttons in the hero.
- Labels that describe the interface ("Submit") instead of the result.
- A CTA that promises one thing and leads to something else, such as "Free trial" linking to a pricing page.
- Using a
<div>or<span>with a click handler instead of a real link or button. - A button that is too small on touch screens or has no visible keyboard focus.
- A different label in the hero and in the navigation for the same action.
Exercise
A project-management tool's hero has the headline "Plan your team's week in five minutes." It shows three equally styled buttons: "Learn more," "Submit," and "Contact sales." The product can be tried free without talking to anyone. Name the primary CTA you would use, give its label, and say what happens to the other two buttons.
Show answer
The product is self-serve, so the primary action is a free trial or sign-up, labeled with the outcome, for example "Start free trial" or "Plan my first week." "Submit" is dropped because it names the mechanics, not the result. "Contact sales" and "Learn more" are either removed from the hero or reduced to one quiet secondary link, such as "See how it works," styled as text or an outline so it does not compete with the filled primary button. Contact sales can move to the navigation.
Exercise
Your hero's primary CTA is a <div class="btn">Start free trial</div> with a JavaScript click handler that sets window.location to /signup. Give two accessibility problems and the fix.
Show answer
A <div> is not focusable by default, so keyboard users cannot reach it, and it has no link or button role, so screen readers do not announce it as something to activate. The fix is to use <a class="hero__cta" href="/signup">Start free trial</a>, which is focusable, announced as a link, and works without JavaScript. Style it with CSS to look like a button.