Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML telephone link for phones format [duplicate]

Tags:

html

I am making an html link for a phone.

This is what I have:

<a href="tel:1-888-888-8888"> 1-888-888-8888</a>

Will phones recognize this, or do I need to change it to:

<a href="tel:18888888888"> 1-888-888-8888</a>
like image 747
user654936 Avatar asked Apr 26 '13 18:04

user654936


People also ask

How do you make a link call a phone number in HTML?

Adding an HTML Phone Number Call Link to your WebsiteHref=tel: creates the call link. This tells the browser how to use the number. “Tel: 123-456-7890 “creates the HTML phone number. The number within the quotes is the number it will call.

What is the telephone link?

What is a Tel Link? Tel link is a telephone link used on websites. Simply said, it makes your phone number clickable. Therefore, whenever the customer wants to contact you, he/she can click on the link and connect with your customer support right away.


Video Answer


1 Answers

Visual separators (except for spaces) are allowed in the uri.

From RFC 3966 "The tel URI for Telephone Numbers":

5.1.1. Separators in Phone Numbers

Phone numbers MAY contain visual separators. Visual separators ('visual-separator') merely aid readability and are not used for URI comparison or placing a call ... "tel" URIs MUST NOT use spaces in visual separators ...

like image 151
Nate Hekman Avatar answered Nov 07 '22 20:11

Nate Hekman