1.

What are conditional comments?

Answer»

CONDITIONAL comments are developed by microsoft. And it only worked with IE BROWSER. The conditional comments help to target IE browser & comments can be written to target the different version of IE 5-IE 9. CSS RULES or code embedded inside of the comments will be used by Internet explorer BASED browser.  Whereas from IE10 & above the support for conditional comments has been dropped.

<p class=“conditional-comments“> <!--[if IE]> According to the conditional comment this is IE<br /> <![endif]--> <!--[if !IE]> --> According to the conditional comment this is not IE 5-9<br /> <!-- <![endif]--> </p>


Discussion

No Comment Found