Cell phone links on a page

While searching for ways to make a cell phone call a phone number on a web page I found there is no official standard. The most common seems to use the anchor tag with href=”tel:9999999999″. It does work from my blackberry web browser. It can also work with an image of the phone number.


<a href="tel:5558675309"><img src="path/imagename.gif" alt="Call for service 555-867-5309" /></a>

Within one of the forums a user asked about phone number spamming. Much like href=”mailto: the phone numbers could be crawled and used for a spammers phone list using bots. Another user suggested encoding the phonenumber with HTML ascii equivalent characters and even pointed to this site which has an online encoder. I tried it and used it for the telephone number and it still works. The spammers may be able to figure this out in a while but it should at least slow them down.


<a href="tel:555...
becomes
<a href="tel:&#053;&#053;&#053;...

Cup size   
Select size then click on coffee cup.
This entry was posted in Code, Snippets. Bookmark the permalink.