The format-detection attribute and meaning in the Meta tag

2963 단어 format



The translation of format-detection into Chinese means "format detection". As the name suggests, it is used to detect some formats in html. The format-detection attribute of meta mainly has the following settings:


 




<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="format-detection" content="adress=no"  />

 


You can also write:



<meta name="format-detection" content="telephone=no,email=no,adress=no" />

 



The following is a detailed description of the role of each setting:


 


One, telephone


You clearly wrote a string of numbers without a link style, and the iPhone will automatically add a link style to your text, and click the number to automatically dial! How to remove this dial-up link? At this time, our meta should show its magic again. The code is as follows:
telephone=no prohibits converting numbers into dial-up links! telephone=yes will turn on the conversion of numbers into dial-up links. To turn on the conversion function, this meta need not be written. It is turned on by default!
 
2. Email
Tell the device not to recognize the mailbox and not send it automatically after clicking
email=no is forbidden as an email address! Email=yes is turned on and the text is defaulted to the email address, so this meta does not need to be written, it is turned on by default!
 
Three, adress
adress=no forbids jumping to the map! adress=yes enables the function of clicking on the address to jump directly to the map, which is enabled by default!

좋은 웹페이지 즐겨찾기