Early Access
X-UA-Compatible
Advises the web browser to display the webpage in compatibility view or a specific version of Internet Explorer. Primarily used to instruct Internet Explorer to use its Edge rendering engine.
Code Examples
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="X-UA-Compatible" content="" />
Recommendations
- Prefer Modern Web StandardsUse this tag sparingly. Modern websites should be designed using modern web standards, ensuring they work across all browsers without needing such a directive.
- Avoid Version-specific RenderingSpecifying a version-specific rendering mode can lead to unpredictable results in different versions of IE or other browsers. Aim for a responsive, version-agnostic design.
Related Documentation
Related Meta Tags
refresh
Used to redirect the user to a new URL after a certain number of seconds, or to refresh the current page. While it can be useful for redirecting users or refreshing content, its usage is generally discouraged in favor of server-side redirects or JavaScript for a better user experience and performance.
<meta http-equiv="refresh" content="5;url=http://example.com">
X-UA-Compatible
Advises the web browser to display the webpage in compatibility view or a specific version of Internet Explorer. Primarily used to instruct Internet Explorer to use its Edge rendering engine.
<meta http-equiv="X-UA-Compatible" content="IE=edge">
content-type
Defines the MIME type and character encoding for the HTML document. It sets the character set used for the HTML document, which is crucial for correctly displaying text.
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Content-Security-Policy
Defines which dynamic resources are allowed to load, thus helping to prevent cross-site scripting attacks, data injection, and other malicious attempts to exploit web page vulnerabilities.
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://apis.google.com;">
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">
Community