How to Create an SMS Link in HTML

An SMS link can open a message composer with a recipient already selected. The visitor still chooses whether to send the message.
Start with a recipient-only link
Use the sms: scheme followed by your SMS-capable number in international format. Replace the example number below with your own; this is sample markup, not a live contact link.
<a href="sms:+15105550101">Text our team</a>
RFC 5724 defines this URI format. It uses sms:, without the double slash used by an HTTPS web address. Whether a link opens a messaging app depends on the device and its configured handler.
Prefilled text needs a separate compatibility check
The standard also defines a ?body= parameter containing percent-encoded text:
<a href="sms:+15105550101?body=Please%20send%20details">Ask for details</a>
That is a standards-based example, not a promise that every phone, browser or messaging app will prefill it. Apple’s archived SMS-link reference documents a recipient-only format and says not to include message text. Do not describe one body syntax as universally compatible with iOS and Android without testing those clients.
For a simple contact option, keep the recipient-only link and put any suggested wording next to it. Remove malformed variants such as &?body=.
Add the link to your page
In the WordPress Classic Editor’s Code view, insert the HTML example and replace its number and anchor text. In a link URL field, enter only sms:+15105550101, not the surrounding HTML.
The same distinction applies to a Webflow link: the URL field takes the URI; a custom HTML embed takes the full anchor element. After publishing, inspect the resulting link to confirm that the editor has preserved the scheme.
Test what the visitor will see
Try the published link on the actual mobile browsers and messaging apps your audience uses. Check the recipient, any prefilled text and the return path to the website. On a desktop without a suitable handler, provide a visible phone number or another contact method.
A click is not a sent message. Measure those actions separately when judging a campaign. For more website implementation guides, visit the Digital Tools hub.



