HTML / CSS: creating a <a> tag with css
I have a phone number and I want to associate it with CSS. The phone number is the background (CSS) inserted into the div. Is this possible with CSS?
problem ... I have many pages and I only have a css page linked to all of these pages. "no JS" and I don't want everyone around to change the "div" to "a".
+4
5 answers
You need to use the <a> tag. <a> is a semantically correct element that gives you more markup.
Using HTML5, you should mark your phone connection like this.
<a href="tel:+13174562564">317-456-2564</a> This allows mobile devices such as iPhone and Androids to recognize them as a phone number and initiate a phone call when touched.
0