• News
  • Startups
  • Marketing
  • Ad Campaigns
  • Tech & Tools
  • How-to Guides
  • Insights
  • Culture & Media
Sunday, May 18, 2025
  • Login
Digital Boom
  • News
  • Startups
  • Marketing
  • Ad Campaigns
  • Tech & Tools
  • How-to Guides
  • Insights
  • Culture & Media
No Result
View All Result
  • News
  • Startups
  • Marketing
  • Ad Campaigns
  • Tech & Tools
  • How-to Guides
  • Insights
  • Culture & Media
No Result
View All Result
Digital Boom
No Result
View All Result

Create a click-to-text link that starts SMS ‘HTML examples’

Dalia Khirfan by Dalia Khirfan
June 15, 2022
in Guides & Tutorials
2
A A
Create a click-to-text link that starts SMS 'HTML examples'
40
SHARES
202
VIEWS

Links are not restricted to web pages; they can initiate phone calls and emails, but not everyone knows that it could be to start an SMS conversation.

You can launch an email using “href=” mailto:[email protected].” You can also start a phone call using “href=” tel:+201000766661.” – But you might not know that you can launch the SMS app on your website visitors’ phones or desktops (Apple only) with an HTML link.

With the help of HTML, it’s possible to create a hyperlink that sends an SMS message. You can even prepopulate the SMS body text via the link! So, if you wish to add a new method to start conversations with your customers, this article is for you. Here’s how.

How to create a click-to-text SMS hyperlink?

All you need is to use the <a> tag and set the attribute value with “sms://” just as in the following examples:

    • <a href="sms://+201000xxxx">Send a SMS</a>
      • Live preview: Send an SMS to a phone number
    • <a href="sms://2726">Send a SMS</a>
      • Live preview: Send an SMS to shortcode

How to implement it in WordPress or Webflow?

It differs from one CMS to another. Here’s how to implement link-to-text HTML in WordPress or Webflow.

WordPress Classic Editor: there are two ways to implement a link-to-text action to open an SMS in WordPress.

  1. Switch to the text editor instead of the visual editor, insert the link above, and customize the anchor text according to your case.
  2. Highlight the text that you wish to convert into a link to SMS, click the link icon in your editor bar, then insert SMS://+phone number

Webflow: insert “text link or any link element; in the URL field, insert the SMS:// in addition to the phone number you want to receive the message, like this: sms://+20100076661 directly without the rest of the code. Webflow will add the hidden HTML code for you.

Prepopulate SMS body text 

On most mobile phones, clicking this link will open a new message screen prepopulated with the shortcode or your business texting number.

And When a visitor taps on the following link with a body on a smartphone, a new text message will open with a pre-filled recipient and message content as follows:

To work on iOS

<a href="sms:00201000766661&amp;body=Thank you for the SMS tip">Test Preview, pre-populate body text</a>

Another version where you can use it directly in a link field: sms:00201000766661&body=Thank you for the SMS tip

To work on Android and iOS

<a href="sms:00201000766661?body=thank you">Link</a>

Another version where you can use it directly in a link field: sms:00201000766661&amp?body=thank you

Test Preview on iOS, prepopulate body text

Test Preview on Android, prepopulate body text

Hope this helps.

Dalia Khirfan

Dalia Khirfan

Related Posts

How to include current URL in a Webflow form?
Guides & Tutorials

Include current CMS item URL in Webflow forms

November 14, 2023
221
How Positive Thinking Can Turbo Charge Your Career
Guides & Tutorials

How Positive Thinking Can Turbo Charge Your Career

July 5, 2023
205
8 Mind-Blowing Websites to Boost Creativity You Probably Didn't Know Existed
Guides & Tutorials

8 Mind-Blowing Websites to Boost Creativity You Probably Didn’t Know Existed

July 4, 2023
202
How to Copy and paste between devices from your Mac/iPhone
Guides & Tutorials

How to enable copy and paste between Apple devices?

November 24, 2022
202
How to increase the time limit to unsend emails on iPhone?
Guides & Tutorials

How to increase the delay time to unsend emails on iPhone?

September 19, 2022
202
10 hidden settings in iOS 16 that you need to try today
Guides & Tutorials

10 hidden settings in iOS 16 that you need to try today

September 19, 2022
202

LATEST

Google Updates Its Iconic "G" Logo for the First Time in Nearly a Decade
Creative & Design

Google Updates Its Iconic ‘G’ Logo for the First Time in Nearly a Decade

by Ahmed Maher
May 16, 2025
323
The Evolution of Influencer Marketing: From Royal Endorsements to Social Media Powerhouses
Marketing

The Evolution of Influencer Marketing: From Royal Endorsements to Social Media Powerhouses

by Ahmed Maher
May 15, 2025
46.1k
How to Change Where Screenshots Are Saved on Mac (And Master Every Shortcut)
Productivity

How to Change Where Screenshots Are Saved on Mac (And Master Every Shortcut)

by Ahmed Maher
May 15, 2025
60.1k
Inside Radi Farms: The Agritech Startup Reshaping Egypt’s Food Supply Chain
Startups

Inside Radi Farms: The Agritech Startup Reshaping Egypt’s Food Supply Chain

by Ahmed Maher
April 7, 2025
773
Anthropic Launches Web Search for Claude AI Assistant
Tech & Tools

Anthropic Launches Web Search for Claude AI Assistant

by Ahmed Maher
March 20, 2025
206
  • Partners
  • Privacy Policy
  • About us
  • Contact us

© 2025 Digital Boom, Inc.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • About us
  • Become a Digital Boom Author
  • Checkout
  • Checkout
  • Contact us
  • Contributing Writers
  • Digital Boom Home
  • Digital Tools
  • Join us
  • Live News Headlines
  • Login/Register
  • Login/Register
  • My account
  • My account
  • Partners
  • Plans
  • Privacy Policy
  • Staff
  • Terms
  • Terms of Use

© 2025 Digital Boom, Inc.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.