title: How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code?
body: <p>How do I target only Internet Explorer 10 for certain situations like Internet Explorer-specific CSS or Internet Explorer-specific JavaScript code?</p>
  
  <p>I tried this, but it doesn't work:</p>
  
  <pre><code>&lt;!--[if IE 10]&gt;    &lt;html class="no-js ie10" lang="en"&gt; &lt;![endif]--&gt;
  &lt;!--[if !IE]&gt;&lt;!--&gt; &lt;html lang="en" class="no-js"&gt; &lt;!--&lt;![endif]--&gt;
  </code></pre>
  
  <p>Internet&nbsp;Explorer 10 ignores the conditional comments and uses the <code>&lt;html lang="en" class="no-js"&gt;</code> instead of <code>&lt;html class="no-js ie10" lang="en"&gt;</code>.</p>