HTML ☎️ Links for mail, phone, fax, skype and TeamSpeak

Share on email
Share on twitter
Share on linkedin
Share on facebook
Article HTML links for phones, email, Skype, TeamSpeak, Fax,... by wpr0ck
Article HTML links for phones, email, Skype, TeamSpeak, Fax,... by wpr0ck
Article HTML links for phones, email, Skype, TeamSpeak, Fax,... by wpr0ck
Article HTML links for phones, email, Skype, TeamSpeak, Fax,... by wpr0ck
Share on twitter
Share on linkedin
Share on facebook
Share on whatsapp
Share on email

Let's see how to create HTML links to email addresses, skype accounts, phone and fax numbers that, once clicked, offer the user to open them with the appropriate application.

These links look like the following classic HTML links, made with the tag <a href="#">Text</a>with the difference that the data transmitted in the attribute href are composed of a prefix (mailto, tel, callto or fax) followed by the contact ID (email address, skype ID, phone number or fax number) separated by a colon (" :").

  HTML links to email addresses

Let's start with the most classic one, the email address. The prefix to use is "mailto:" followed by the email address.

Link text

But it is possible to go much further by using the following parameters in the URL:

  • subject : Subject of the mail
  • cc : Recipients in carbon copy
  • bcc : Blind carbon copy recipients
  • body : Body of the mail

Here is an example of their use:

Link text

😎 The high-end WordPress host everyone's talking about

  HTML links to phone numbers

For links to a telephone number, the prefix to be used is "such:" followed by the telephone number expressed with its code. In France, the code to use is +33. For other countries, here is the list of international telephone codes. To add the code to a national telephone number (10 digits), simply replace the first zero ("0") with the appropriate international code. Links to phone numbers are very useful on smartphones.

Link text

😎 The high-end WordPress host everyone's talking about

  HTML links to fax numbers

The prefix to be used is "fax:" As for links to telephone numbers, the fax number used must begin with the international code.

Link text

  HTML links to Skype accounts

The prefix to use to make a link to a Skype Name is "callto:", which is used to launch Skype, the popular instant messaging and video calling software, on computers and mobile devices on which the application is installed.

Link text

  HTML links to TeamSpeak 3 servers

It is also possible to create links for TeamSpeak 3 software with the information of the target server as parameters. By default, the link used must consist of the server address and port. But it is possible to pass many more parameters in this URL, as shown below.

Link text

As with links to email addresses, links to a TeamSpeak server may contain settings. These parameters are as follows:

  • port: Number of the port to use to connect to the server
  • nickname : Name to use and display
  • password : Password
  • channel : Name of the channel (conversation room)
  • cid : Specify the channel with an ID
  • channelpassword: Password of the channel
  • token: Connection key
  • addbookmark : Name to give for the server in the teamspeak client favorites

These additional parameters are used as follows.

Link text

Note that if you use the "cid" parameter in the server URL, then the "channel" parameter can be ignored.

Julien MA Jacob
WordPress Developer
Julien MA JACOB - WordPress Developer
Passionate about the web and programming with always many projects in mind
  Discussion of the article
Subscribe to the newsletter
Notify to
guest
4 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Hoppicker

Thank you for this good and interesting article.
A "tel:" link is not necessarily followed by the international number (+33XXXXXXXXXXXXX) but if it is in the form 0XXXXXXXXXXX, the call from a smartphone will only work in France.
Note also that for the look, we can display the number with spaces: XX XX XX XX XX XX XX XX

Manon BIlodeau

do you have a link that opens to text the person?

Aina Herifitia

Thank you for sharing, it's a very good article.

Mishel Tanvir Habib

The " href= "fax: " is now obsolete. Actually its obsolete a long time ago, in 2004. Please see this SO question for details https://stackoverflow.com/questions/9443520/does-anything-like-a-href-faxnumbernumber-a-exist