Connecting WhatsApp code on Website page - PHP HTML
Confused about how to enter the WhatsApp icon on your store selling website? Usually, today's IT students are asked to make social media connections into the website pages that are created. An example is WhatsApp, don't worry, here we will discuss how to add WhatsApp to our website. Watch it right away!
Previously PHP was a programming language commonly used in making a website page, in this PHP we can use the if then else condition. Unlike HTML, HTML is a language that is often used in making web pages. However, this HTML language cannot use various conditions.
To enter the WhatsApp icon and its connectivity, you can use the code below.
First, in your html body section, enter this WhatsApp code:
<a href="https://api.whatsapp.com/send?phone=%2B628.......&" class="whatsapp_float" target="_blank"> <i class="fa fa-whatsapp" style="font-size:48px;color:green"></i></a>
Don't forget to enter your number starting from the text B628.... which means 62 is the code for the Indonesian telephone number which has a value of zero or "0" in the WhatsApp code.
The use of the code above can be used in files that use PHP or HTML, but don't forget to make your file extension ".php". Because the .php extension can load any HTML language, unlike the ".html" extension it cannot load languages created from the PHP programming language.
Thus Connecting the WhatsApp code on the Website page - PHP HTML in our article, hopefully it can help all readers.