× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

If IE tag not working for IE11

Codementor User
Mar 28, 2015
<p><strong>Internet Explorer 10 and 11 do NOT support conditional <code>if</code> comments. They are only supported uptil IE9.</strong></p> <p>You can read more about them on <a href="http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx" rel="nofollow">this MSDN post</a>.</p> <p>The dropping of support is listed in <a href="http://msdn.microsoft.com/en-us/library/ie/hh801214(v=vs.85).aspx" rel="nofollow">this article from the MSDN site itself</a>.</p> <p>From the same page: </p> <blockquote> <p>If the page works correctly in other browsers, consider using feature detection to treat Internet Explorer 10 like other browsers. Otherwise, add the following meta tag near the top of the page to opt into Internet Explorer 9 behavior: HTML</p> <p><code>&lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"&gt;</code></p> </blockquote> <p><strong>This workaround should be avoided. Keep your code semantic and these won't be required in most cases.</strong></p> <p>In your case, don't wrap <code>input</code> elements in anchor/any other tags. Use a <code>label</code> instead.</p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/26608959/If%20IE%20tag%20not%20working%20for%20IE11/26608986">Stack Overflow</a>.</p>
comments powered by Disqus