Open In App

How to set IE compatibility mode ?

The percentage of market share in the global desktop browser of Internet Explorer(IE) is less than 3%. If we are developing a site that includes global users or a sizable number of visitors from an older IE version then we have to make our website compatible with IE, even though that is outdated. The solution to this problem is  X-UA-Compatible mode.

This article will tell you how to set IE(Internet Explorer) using HTML meta tags.



X-UA-Compatible is a document mode meta tag that allows us to choose which version of Internet Explorer the page should be rendered. Information about the http-equiv and content tags can be found at.

Example: This example uses a meta element that includes an X-UA-Compatible header and value of IE=9 in content attribute which limits the webpage features so that the webpage is supported by Windows Internet Explorer 9.






<!DOCTYPE html>
<html>
<head>
  <title>Your Webpage Title</title>
  <!-- Use Internet Explorer 9 Standards mode -->
  <meta http-equiv="X-UA-Compatible" content="IE=9">
</head>
<body>
  <h>Your Heading</h>
  <p>Your content goes here.</p>
</body>
</html>

The content of the http-equiv tags are below:

Quirks Mode: This mode is a technique used by some browsers in maintaining backward compatibility for pages developed for older browsers, like in our case Internet Explorer.

Article Tags :