GuidesChapter 2 · Website Builders

Website Builders

Website Buttons: Design, Text, Placement and Code

Website buttons guide visitors to the next step. See how to style, place, and build accessible buttons step by step in Wix, Squarespace, and WordPress.

In short

Website buttons are clickable elements that help visitors take an action, such as sending a form, making a purchase, or booking a service. Make each button easy to recognize, label it with short, specific words, and use one clear primary action with consistent styling, helpful placement, and enough space to tap. Accessible buttons work with keyboards and screen readers, stay readable on phones, and make the next step clear to every visitor.

Think about the start button on your microwave. You don’t hunt for it or read the manual, because it looks like a button and says exactly what it does.

A website button works the same way: a clickable element that tells visitors what happens next, like Buy now or Book a call.

In this guide, we’ll cover the main types, how to design, word and place your buttons, and how to code them so everyone can use them.

You’ll also get a step-by-step walkthrough for adding and styling buttons in Wix, Squarespace and WordPress, even if this is your very first site.

How Website Buttons Should Look and Rank

A button is a clickable element that does something when a visitor clicks it, like sending a form or adding to a cart. A button that asks for a specific step is often called a CTA, short for call to action.

Make buttons look clickable at a glance

Stick with familiar cues like a rounded shape, a clear label, and a subtle raised edge. Add comfortable padding (the space around the label) and a color that contrasts with the background.

A hover state changes the look while a cursor sits over the button, and an active state shows the moment it’s pressed. Feedback matters. Avoid styling buttons like body text, or visitors will skim right past them.

Telling main buttons from secondary ones

The two you’ll use most are the primary button, the main action you want visitors to take, and the secondary button for everything else. Each screen needs just one primary.

Picture a freelance photographer whose bold “Book a session” button leads, with a lighter outline “See pricing” beside it, so bookings stand out.

Give the key action a different look, and skip the extras: six equal buttons leave no clear next step. So the best buttons for most sites are the ones with one clear job.

Buttons do actions, like submitting a form, adding to a cart, or flipping a toggle (an on-off switch). Links navigate between pages. Here’s the rule we follow: buttons do things and links go places.

Less important actions can look like links, such as “Read more,” so they don’t compete with the main button. A link styled as a button fits when it opens a new page, but a button styled as plain text gets missed. Quieter links like these often gather in the website footer at the bottom of a page.

Writing Clear Text for Buttons

Button text is the final nudge before someone acts, so we’ll keep it tight. Vague words make people hesitate.

Keep button text short and action-led

Aim for one to three words that start with a verb, like “Buy now” or “Save changes.” Then describe what happens next: say what the button does, not just where it goes.

“Download guide” beats “Resources” because it promises a file, not a page. Shorter wins.

Use sentence case, meaning only the first word and proper nouns get a capital: “Email us,” not “Email Us.”

Use plain words that fit the moment

Match the words to the current moment. Someone who just filled in a contact form needs “Send message,” while a shopper wants “Add to cart.” Avoid jargon, the insider terms your industry uses every day.

“Authenticate” means little to a customer, while “Sign in” does the job. Skip generic labels like “Submit” or “OK,” which say nothing about the outcome. Think of a retired teacher starting a blog with a newsletter sign-up.

Swapping “Submit” for “Join the newsletter” tells readers exactly what they’re agreeing to.

Making destructive actions safer to take

A destructive action is anything that deletes, cancels, or permanently changes something. Because they’re hard to reverse, they need extra care:

  • Name the consequence. Say what will happen, like “Permanently delete gallery,” not “Remove.”
  • Ask for a typed confirmation. For big changes, people type the item’s name before the final button works.
  • Offer undo. Where you can, let people reverse the action right after it happens.

Picture a wedding photographer clearing out old galleries. A clear label and a typed confirmation mean one misclick won’t wipe out the wrong photos.

Adding icons that signal clear actions

Icons signal specific actions when people already recognize them, like a trash can for delete. Keep a text label beside any icon whose meaning isn’t obvious. Icons also need a finger-friendly size, big enough to tap with a thumb on a phone.

Consider a freelance consultant whose booking button has a calendar icon next to “Book a call.” Phone visitors tap the right thing the first time. Icons work best alongside text, not instead of it.

Getting Button Size, Spacing and Color Right

A button can look perfect on a laptop and still frustrate phone users. Size, spacing, color and consistency decide whether people tap it.

Making buttons big enough to tap

Picture a bakery whose “Order Now” button is a tiny text link beside the menu. Customers on phones keep missing it. Aim for a tap target (the area a finger can press) of about 44x44 pixels.

Internal padding (the space between label and edge) makes the whole shape easy to hit. Leave margin between buttons so thumbs don’t hit the wrong one.

Make the main action bigger, not every button. A larger variant tells visitors what matters most.

Color that signals meaning and stays readable

  • Priority: Give the main action your strongest color and keep the rest quieter.
  • Red for destructive actions: Reserve red for Delete or Cancel Order, where mistakes can’t be undone.
  • Muted disabled state: A greyed-out button says “not available right now,” so nobody keeps clicking it.
  • Contrast: Pale text on a pale button disappears. Check yours with a free contrast checker.
  • State variants: Use slightly different shades for hover, pressed and focus, so buttons respond to clicks and taps.

Keeping buttons consistent on every screen

Consider a wedding photographer whose “Book a Consult” button is teal on the home page and plain text on the contact page. Visitors can’t tell it’s the same action.

Keep one shape, font and padding everywhere. Reuse a design system (a shared set of building blocks like buttons and colors) instead of styling each button by hand. Avoid one-off styles, like one bright green button on a single page.

Set the style once for the whole site and let every page inherit it. Shape and style trends come and go, so treat them as a starting point and pick what fits your brand. A consistent look across pages is one part of professional website design.

Where Website Buttons Belong on a Page

A button’s position matters as much as its wording, so put it where the visitor’s decision happens.

Placing buttons where the task naturally ends

Every page has a job, like reading a menu or filling out a booking form. The primary action (the one thing you most want visitors to take) belongs at the end of that job. Take Maya, who sells custom cakes from her first website.

Her “Request a quote” button sits right under the flavor and size details. Customers never have to hunt.

  • Right side of button pairs. With “Cancel” and “Book now” side by side, put the primary action on the right, where most people expect the main choice.
  • Match user scanning patterns. Visitors skim in predictable paths, so place the button where their eye lands after reading, not in an empty corner.

Unsure which placement works? A/B testing shows one version of a button to some visitors and another to the rest, then compares clicks. Change one thing at a time so you know what made the difference.

Using floating and sticky buttons wisely

A sticky button stays on screen as visitors scroll, and a floating one hovers over the page in a fixed spot. They can help, but they’re easy to overuse, so use them with the content, not instead of it.

  • Avoid disconnected buttons. A “Buy” button pinned to a corner while the product details sit at the top feels random.
  • Keep the call to action (CTA) near the task. The CTA works best right after the sentence that makes the case for it.
  • Fixed bottom buttons on mobile. On a phone, a slim bar along the bottom keeps “Order now” in reach as someone scrolls a menu. Keep it to one action.
  • Don’t block content. A sticky element that covers text, prices, or form fields frustrates people fast. Leave space at the bottom of the page. Readers come first.

Building Buttons Everyone Can Use

Not every visitor uses a mouse or sees color the same way. Here’s how we make buttons work for everyone.

Coding buttons for keyboards and screen readers

Show a visible focus state, an outline that marks the button a keyboard user has reached. Don’t remove it without a clear replacement.

Use standard button markup: a real button element, not a styled div. A button responds to Space, a link to Enter, and screen readers announce each differently.

Showing why a button is unavailable

disabled blocks clicks and removes the button from keyboard focus. aria-disabled keeps it focusable and tells screen readers it’s unavailable.

Either way, show why it’s unavailable, not just that it is. A bakery’s order form might gray out Place Order until a customer picks a pickup day, with a note: “Choose a pickup day to continue.” Nobody’s left guessing.

Disabled styles need logic: tie them to the same condition that controls the button, and check the readability of each state.

Setting up button attributes and variants

Always set the type attribute (button, submit or reset) so the browser knows the button’s job.

Use classes for variants, such as btn-primary, so one style change updates every matching button.

Check your theme settings for button corner radius and font before writing any code.

To make a button look like plain text, such as a “Show details” option, keep it a real button so it still responds to Space.

On Wix, Squarespace or WordPress, most of this lives in the builder’s button settings, no code needed.

Testing button contrast for accessibility

WCAG 2.1 AA sets minimum contrast requirements for button text, with some exceptions. Research on accessible button components for mobile screens gives the figures for success criterion 1.4.3 at Level AA:

  • Regular text: a contrast ratio of at least 4.5:1
  • Large text: 3:1

A DEV Community guide to contrast checkers points to WebAIM’s free Contrast Checker, from a non-profit service center at Utah State University.

Enter your button’s text and background colors to see whether they meet WCAG requirements. Test it, don’t guess.

Record your accessibility test results in your site notes, so you can recheck after any color change.

Where to Find Button Icons

Icons do a lot of quiet work on a button, since a small picture can say “save” or “play” faster than a word. Here’s a quick tour of the icon sets (matching symbol collections) your builder usually includes.

Icon sets for navigation, actions, and media

  • Navigation arrows and menus. Arrows point visitors forward, back, or to the next page, and the three stacked lines open a hidden menu on a phone. Most visitors read these instantly.
  • Action icons like save and send. A disk for save or a paper plane for send is less obvious than an arrow, so pair it with a short word.
  • Commerce icons like buy now. A shopping cart or bag suits an add-to-cart button. Consider a florist who puts a cart icon beside “Order flowers” so checkout is clear on a phone, and the button doesn’t get lost among the photos.
  • Media controls like play and stop. A triangle for play and a square for stop are shapes most visitors already know. Use them on a video or audio embed, not a plain text link.
  • Wireframe and web design icons. A wireframe is a rough sketch of a page’s layout. Its icons are plain outlines that show structure without final colors or fonts. Think of a first-time blogger who places outline icons where the “Subscribe” button will go, to see the layout before picking colors.

Pick icons for clarity rather than decoration. If a visitor can’t guess what a symbol does in a split second, a word beside it does the job. Recognition wins.

A good button does three jobs at once: it looks like something worth clicking, it says exactly what happens next, and it works for everyone who lands on your page. Get those right and the rest of your site has an easy path to follow.

You don’t need a designer or a coding background to get there. Start with one clear main button, label it in plain words, and check how it looks on a phone before you publish. Make the next step obvious, and your visitors will take it.

References

  1. Accessible button components for mobile device screen — theseus.fi (2024)
  2. Best colour contrast checkers for WCAG text pairs — dev.to (2026)

Questions

What are buttons on a website?

Website buttons are clickable elements that perform an action, such as submitting a form, adding an item to a cart, or starting a booking. Buttons that ask visitors to take a specific step are often called calls to action, or CTAs.

What are buttons on websites called?

Website buttons are commonly called buttons or call-to-action buttons (CTAs) when they prompt a specific action. In web design and code, they may also be described as button elements.

Sources

  1. Accessible button components for mobile device screen, theseus.fi,
  2. Best colour contrast checkers for WCAG text pairs - DEV Community, dev.to,
Share