Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The simplest way would be to use <a href="http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx" rel="noreferrer">IE Conditionals</a>. </p> <p><strong>Note:</strong> IE10 and beyond have <a href="http://msdn.microsoft.com/en-us/library/ie/hh801214(v=vs.85).aspx" rel="noreferrer">removed support</a> for this feature. For modern browsers the widely accepted way of conditionally displaying content for compatibility purposes is using <a href="http://www.html5rocks.com/en/tutorials/detection/#feature-detection" rel="noreferrer">feature detection</a>. <a href="http://modernizr.com/" rel="noreferrer">Modernizr</a> is a popular library built for handling feature detection.</p> <p>For example:</p> <pre><code>&lt;!--[if IE 9]&gt; &lt;script type="text/javascript"&gt; window.location = "http://www.ie9version.com"; &lt;/script&gt; &lt;![endif]--&gt; </code></pre> <p>Examples from the conditional site:</p> <pre><code>&lt;!--[if IE]&gt;&lt;p&gt;You are using Internet Explorer.&lt;/p&gt;&lt;![endif]--&gt; &lt;![if !IE]&gt;&lt;p&gt;You are not using Internet Explorer.&lt;/p&gt;&lt;![endif]&gt; &lt;!--[if IE 7]&gt;&lt;p&gt;Welcome to Internet Explorer 7!&lt;/p&gt;&lt;![endif]--&gt; &lt;!--[if !(IE 7)]&gt;&lt;p&gt;You are not using version 7.&lt;/p&gt;&lt;![endif]--&gt; &lt;!--[if gte IE 7]&gt;&lt;p&gt;You are using IE 7 or greater.&lt;/p&gt;&lt;![endif]--&gt; &lt;!--[if (IE 5)]&gt;&lt;p&gt;You are using IE 5 (any version).&lt;/p&gt;&lt;![endif]--&gt; &lt;!--[if (gte IE 5.5)&amp;(lt IE 7)]&gt;&lt;p&gt;You are using IE 5.5 or IE 6.&lt;/p&gt;&lt;![endif]--&gt; &lt;!--[if lt IE 5.5]&gt;&lt;p&gt;Please upgrade your version of Internet Explorer.&lt;/p&gt;&lt;![endif]--&gt; &lt;!--[if true]&gt;You are using an &lt;em&gt;uplevel&lt;/em&gt; browser.&lt;![endif]--&gt; &lt;![if false]&gt;You are using a &lt;em&gt;downlevel&lt;/em&gt; browser.&lt;![endif]&gt; &lt;!--[if true]&gt;&lt;![if IE 7]&gt;&lt;p&gt;This nested comment is displayed in IE 7.&lt;/p&gt;&lt;![endif]&gt;&lt;![endif]--&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload