I read in several other posts that creating a linked link for a phone number can be done using tel: in the anchor tag
I would like to implement this on a responsive website .. something like this:
<a href="tel://1-555-555-5555">Call Us! <span>(555) 555-5555</span></a>
(the span tag that I plan to use to hide the phone # using CSS)
The idea is that on the desktop you will see only "Call Us! (555) 555-5555", but not the actual link
But when we zoom out to mobile, you'll see a stylized link that simply says βCall us!β. what you can click.
I'm sure there is a way to do this using JavaScript or JQuery ... but still, to accomplish this using CSS Media queries?
Note: visual style is not a problem. just looking for a reasonable solution for the concept of "switching".
Thanks in advance!
source share