Categories
HTML

How to add WhatsApp function to website, like sms, tel with HTML?

Spread the love

Sometimes, we want to add WhatsApp function to website, like sms, tel with HTML.

In this article, we’ll look at how to add WhatsApp function to website, like sms, tel with HTML.

How to add WhatsApp function to website, like sms, tel with HTML?

To add WhatsApp function to website, like sms, tel with HTML, we add a URL for the link.

For instance, we write

<a href="https://wa.me/1234567890/?text=urlencodedtext"></a>

to set the URL for the WhatsApp link.

1234567890 is the app phone number.

And the text query parameter has the text we want to send to the number.

Conclusion

To add WhatsApp function to website, like sms, tel with HTML, we add a URL for the link.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *