Digital Boom
  • Home
  • News
  • Startups
  • Marketing
    • Digital Advertising
    • Insights
    • Social Media
  • Campaigns
  • Tech
  • Guides
  • More
    • Market Watch
    • Careers
    • Ramadan Specials
    • Culture
    • Travel
    • Glossary
    • Apple Updates
    • Facebook Marketing Hub
    • Markets
No Result
View All Result
  • Home
  • News
  • Startups
  • Marketing
    • Digital Advertising
    • Insights
    • Social Media
  • Campaigns
  • Tech
  • Guides
  • More
    • Market Watch
    • Careers
    • Ramadan Specials
    • Culture
    • Travel
    • Glossary
    • Apple Updates
    • Facebook Marketing Hub
    • Markets
No Result
View All Result
Digital Boom
No Result
View All Result
Home Guides

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

by Dalia Khirfan
June 15, 2022
Create a click-to-text link that starts SMS 'HTML examples'

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.

ShareTweetPin

Join Our Community

Dalia Khirfan

Dalia Khirfan

Dalia is a digital marketing strategist and SEO specialist based in Amman, Jordan, with expertise in MENA market optimization and search strategy. As Digital Marketing Lead at SOS Children's Villages Jordan, she drives measurable growth through data-driven SEO campaigns and content strategy. She specializes in helping businesses navigate Arabic keyword research, cultural content adaptation, and algorithm changes across Middle Eastern markets.

Related Stories

How to deactivate or delete your Snapchat account?
Guides

Delete Snapchat Account (Step-by-Step 2025)

3 weeks ago
How to delete your TikTok account
Guides

Delete TikTok Account Permanently (2025 Guide)

3 weeks ago
How to recover your hacked Facebook account?
Guides

Recover Your Hacked Facebook Account

4 weeks ago
How to Copy and paste between devices from your Mac/iPhone
Guides

Enable Copy and Paste Between Apple Devices

1 month ago
How to Become LLM-Ready in 2025: A Guide for Publishers
Guides

Publishing for Machines: The 2025 Guide to LLM-Ready Content

2 months ago
How to include current URL in a Webflow form?
Guides

Include current CMS item URL in Webflow forms

2 years ago

Don't Miss

YouTube Tightens Monetization Rules on AI-Generated Content

YouTube Tightens Monetization Rules on AI-Generated Content

July 10, 2025
Amr Diab’s 2025 Album: Orange Sponsorship, Apple Music Comeback

Amr Diab’s 2025 Album: Orange Sponsorship, Apple Music Comeback

July 3, 2025 - Updated on July 5, 2025
Germany Begins Government-Wide Exit from Microsoft Software

Germany Begins Government-Wide Exit from Microsoft Software

June 14, 2025
Builder.ai Ceases Operations After $1.3 Billion Valuation Collapse

Builder.ai Shuts Down After Layoffs and Investor Pullout

May 26, 2025 - Updated on July 5, 2025
Jordan’s U.S. Foreign Aid: 2025 Budget Cuts and Their Regional Impact

Jordan’s U.S. Foreign Aid: 2025 Budget Cuts and Their Regional Impact

March 20, 2025
  • Digital Boom
  • About Us
  • Team
  • Partners
  • Submit an Article
  • Contact Us
  • Privacy Policy
  • Terms of Use

© 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

Add New Playlist

No Result
View All Result
  • Home
  • News
  • Startups
  • Marketing
    • Digital Advertising
    • Insights
    • Social Media
  • Campaigns
  • Tech
  • Guides
  • More
    • Market Watch
    • Careers
    • Ramadan Specials
    • Culture
    • Travel
    • Glossary
    • Apple Updates
    • Facebook Marketing Hub
    • Markets

© 2025 Digital Boom, Inc.