Sub topic 11
Writing a clear call to action
This chapter assumes you know basic HTML and CSS and have seen how a landing page is organized into a headline, proof, and an offer. Here you will write the call to action (CTA), the single element that asks the visitor to take the next step.
What a call to action does
A call to action is the link or button that asks the visitor to complete the page's one conversion goal. Every other section exists to make this request reasonable. If the CTA is vague or hard to find, the work the headline, proof, and offer did is wasted.
A good CTA has three qualities:
- It names the action. The visitor knows what a click does.
- It matches the offer. The label promises what the offer describes.
- It is easy to see and use. It stands out visually and works with a keyboard.
Writing the label
The label is the text on the button. Write it so it completes the sentence "I want to ...".
| Weak label | Stronger label | Why it is better |
|---|---|---|
| Submit | Start your free trial | Names the result, not the mechanism |
| Click here | Download the pricing guide | Says what the visitor receives |
| Learn more | See how invoicing works | Says what happens next |
| Get started | Create your free account | Makes the first step concrete |
Keep the label to a few words and use a verb first. Use the same words the offer section uses. If the offer says "14-day trial", a button reading "Buy now" breaks the promise and will lose visitors.
Add a short note under the button to remove doubt at the moment of decision. The skeleton below uses "14-day trial. No credit card required." Only include claims that are true.
Making the button visible and usable
A CTA must look like the most important clickable thing in its section. Use strong contrast between the text and the background, generous padding, and a visible focus outline for keyboard users.
.button {
display: inline-block;
padding: 0.75rem 1.5rem;
background: #0b5fff;
color: #ffffff;
font-weight: 600;
text-decoration: none;
border-radius: 0.375rem;
}
.button:hover {
background: #0846c2;
}
.button:focus-visible {
outline: 3px solid #111111;
outline-offset: 3px;
}Use an a element when the click navigates to another page, as it does here. Use a button element when the click submits a form or runs a script. Screen readers announce these two elements differently, so the choice matters.
One primary action
Give the page one primary CTA and use the same label and destination every time it appears. Competing buttons such as "Start free trial", "Book a demo", and "Download brochure" split attention and make the visitor choose. If you need a secondary option, style it as a plain text link so it does not compete.
<a class="button" href="/signup" data-cta="hero">Start your free trial</a>
<p class="note">14-day trial. No credit card required.</p>The data-cta attribute does not change what the visitor sees. It records where the button sits, so you can later tell which placement was clicked.
document.querySelectorAll('[data-cta]').forEach((link) => {
link.addEventListener('click', () => {
console.log('cta_click', link.dataset.cta);
});
});Replace console.log with your analytics tool's event call.
Common errors
- Labels that describe the form ("Submit") instead of the outcome.
- A label that promises something the offer does not deliver.
- Several different primary buttons on one page.
- Removing the focus outline with
outline: noneand no replacement. - Using
divorspanelements as buttons, which keyboard users cannot reach.
Exercise
A landing page offers a 14-day free trial. Its button says "Submit" and a second button nearby says "Book a demo". Rewrite the primary label, say what to do with the second button, and give one reason for each change.
Show answer
Change the primary label to "Start your free trial". It names the outcome and matches the offer. Turn "Book a demo" into a plain text link, or remove it. The page has one conversion goal, and two equal buttons make the visitor choose instead of act.