Open In App

How to connect Skype, Mail and Phone using HTML ?

Improve
Improve
Like Article
Like
Save
Share
Report

Connecting to Mail: Mailto link is a default way to sending a mail when the consumer wants to communicate or wants to give feedback, then by clicking the mailto link will open a default sending mail window. So we can use mailto which direct to the mail once the form is submitted. Using mailto we can set the action field of the form and in this case, the web browser invokes the email client to send the form submission to the email address specified. Also, we can attach the Cc, Bcc, Subject, and body content also.

Syntax:

<form  method="POST" action="mailto: name@gmail.com"
          enctype="multipart/form-data">

Example:

HTML




<!DOCTYPE html>
<html>
  
<body style="text-align: center;">
    <h1 style="color:green;">
        GeeksforGeeks
    </h1>
  
    <!-- Connecting to mail -->
    <a href="mailto:gfg@geeksforgeeks.org">
        Connect to others mail
    </a><br>
  
    <!-- Connecting to my mail -->
    <a href="mailto:geeks8@gfg.com">
        Connect to my mail
    </a>
</body>
  
</html>


Output:

Connecting to Phone: With the rise of mobile web surfing, the benefits of calling directly from a web page have become more realistic. Making a call-able link is easy with the use of HTML. HTML provides browsers with protocols such as tel which are used to add clickable phone numbers. Every browser responds differently to these protocols. Some launch the phone app with the number on the display, waiting for you to call while others directly make the call.

Approach:

  • Add tel:(a number) inside href attribute of the anchor tag.
  • You can even add country code for international calls as a part of the number.
  • Some phone numbers have an extension. You can add p before the extension that will cause a one-second delay before dialing the next phone.

Syntax:

<a href="tel:(countrycode)(NUMBER)p(extension)"> Text </a>

Example:

HTML




<!DOCTYPE html>
<html>
  
<body style="text-align: center;">
    <h1 style="color: green;">
        GeeksforGeeks
    </h1>
  
    <h3>
        Make a call-able link using HTML
    </h3>
  
    <a href="tel:987654321">
        Call to GeeksforGeeks support
    </a>
</body>
  
</html>


Output:

Connecting to Skype: Skype is a telecommunication application that provides video calls and voice calls between mobile phones, computers and other devices. It requires internet facility for providing any of its services. It is also used for messaging that can contain text, image, audio or video. It allows connecting several people at a time in video conferencing calls. It was launched by Skype Technologies in 2003. It is currently owned by Microsoft Incorporation. It is one of the most used applications for video chatting.

Syntax:

<a href="skype:cid.5728887e6ec8a357"> Connect with Skype </a>

Example:

HTML




<!DOCTYPE html>
<html>
  
<body style="text-align: center;">
    <h1 style="color:green;">
        GeeksforGeeks
    </h1>
  
    <!-- Connecting to other's skype -->
    <a href="skype:cid.5728887e6ec8a357">
        contact with skype
    </a>
</body>
  
</html>


Output:



Last Updated : 01 Dec, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads