I am using IE 11 version. Is there any other solution to do the following:
Nothing happens when I try to use conditional IE clause in the html webapge. Can anyone help me debug this issue please.
<!--[if IE]>
<a href="next-page.php" class="start-button">CLICK ME</a>
<![endif]-->
Conditional statements do not work in IE 10 or 11
Support for conditional comments has been removed in Internet Explorer 10 standards and quirks modes for improved interoperability and compliance with HTML5. This means that Conditional Comments are now treated as regular comments, just like in other browsers. This change can impact pages written exclusively for Windows Internet Explorer or pages that use browser sniffing to alter their behavior in Internet Explorer.
If you really need to execute code just on those browsers, and you probably shouldn't, you can use JavaScript to do some feature detection as an alterantive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With