HTML Email Guides

How to Create HTML Email Buttons

Build clear, accessible email calls to action using HTML links and compatibility-conscious styling.

← All guides

Use an actual link

A call to action in an email usually navigates the recipient to a webpage. Use an anchor element with a meaningful destination instead of a JavaScript event handler.

Choose descriptive labels such as View your invoice or Confirm your email address. The recipient should know what will happen before activating the link.

<a href="https://example.com/account"
  style="display:inline-block;
  padding:14px 24px;
  background-color:#2563eb;
  color:#ffffff;text-decoration:none;
  border-radius:6px;">
  View your account
</a>

Provide sufficient contrast and spacing

Buttons should be visually distinguishable from their surroundings. Use contrasting text and background colors and leave adequate room around the clickable area.

Avoid placing multiple competing primary buttons close together on narrow screens. Make the most important action easy to identify.

Plan for limited CSS support

Padding, rounded corners and display properties can behave differently across email clients. Table-based button structures and specialized classic Outlook fallbacks can help when required.

No single short HTML button example guarantees pixel-identical rendering in all inboxes. The destination and label should remain available even if decorative styles are removed.

Verify destinations

Check HTTPS destinations, personalization parameters and expiration rules. A password reset action requires more careful token handling than a link to a public article.

Preview the visual button in MailViewer, then verify the actual destination using a safe test message sent through your delivery service.

Test your HTML email

Use MailViewer to preview, format and validate your HTML email directly in your browser.

Open MailViewer →

Continue learning

Technical references and resources →