Change of html between desktop and mobile safari

2

I'm programming a page and in a certain section you have a p to place two phone numbers. However, when I open the page in iphone safari, the html has an extra href, which I did not write. on the left is the code on mobile and the right on the desktop that is what I wrote

Does anyone have an idea of what happens? Thanks

    
asked by Alina 05.10.2018 в 23:34
source

1 answer

2

in iOS Safary detects the existence of phones and adds that href this does it to make it easier to call directly.

If what you're looking for is that this does not happen to you, you should just set it in the head in this way:

<head>
  ...
  <meta name = "format-detection" content = "telephone=no">
</head>

Here is the official documentation as well

    
answered by 06.10.2018 в 00:33