Early Access
format-detection
Controls how telephone numbers, email addresses, and physical addresses are detected and displayed by the browser. By default, many browsers can automatically detect this information and style or link it accordingly, which might not always align with the web developers’ intentions.
Parameters
<meta name="format-detection" content="telephone=yes" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=yes" />
<meta name="format-detection" content="email=no" />
<meta name="format-detection" content="address=yes" />
<meta name="format-detection" content="address=no" />
Code Examples
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no, address=no" />
<meta name="format-detection" content="telephone=yes, email=yes, address=yes" />
<meta name="format-detection" content="" />
Recommendations
- Ensure User Control for Phone LinksWhen setting "telephone=no", consider providing your own mechanism for users to initiate calls if your site includes phone numbers. Not all users appreciate automatic linking, especially on desktop sites where such functionality can be less useful.
- Test Across Browsers for Email and Address DetectionSince "email" and "address" detection support can vary between browsers, test their behavior across different environments, especially if you decide to enable these features. You might need JavaScript fallbacks for consistent behavior.
Related Documentation
Related Meta Tags
application-name
Defines the name of the web application as it should be displayed when bookmarked or added to a mobile home screen.
<meta name="application-name" content="MyApp">
charset
Defines the character encoding standard for the HTML document. Character encoding is essential for rendering text correctly in browsers.
<meta charset="charset" content="UTF-8">
color-scheme
Instructs the browser on what color themes (light or dark mode) are supported and preferred for the content, ensuring visual consistency and accessibility.
<meta name="color-scheme" content="light dark">
default-style
Specifies the name of the preferred stylesheet to use on a web page. This allows users or user agents to choose the default stylesheet amongst many provided.
<meta http-equiv="default-style" content="Main Style">
format-detection
Controls how telephone numbers, email addresses, and physical addresses are detected and displayed by the browser. By default, many browsers can automatically detect this information and style or link it accordingly, which might not always align with the web developers’ intentions.
<meta name="format-detection" content="telephone=no">
Community