Ads Top

How to create a whatsapp link in html?

How to make link for whatsapp?

Yes you want to give a link for the whatsapp number so it's so simple use as anchor  "https://api.whatsapp.com/send?phone=918885694512". This is an api when you will click then directed on the whatsapp site (https://api.whatsapp.com/send?phone=). And then need to your whatsapp number as anybody using in this example : "918885694512", first two digit is country code and then 10 digits are whatsapp mobile number.

If you want to add any message then need to add "&text=This%20is%20test%20Message". In between message we use "%20" for the space.

<div><a href="https://api.whatsapp.com/send?phone=918885694512&text=This%20is%20test%20Message">Whatsapp</a></div>
 <div><a href="https://api.whatsapp.com/send?phone=918885694512">Whatsapp without message</a></div>
 <div><a href="https://api.whatsapp.com/send?phone=918885694512"><img src="images/whatsapp.png" alt="Whatsapp"></a></div>
 <div><a href="https://api.whatsapp.com/send?phone=918885694512">Whatsapp without wrong number</a></div>


No comments:

Copyright Reserved to Anything Learn. Powered by Blogger.