Conditional Comments in IE

Very rarely do I think that IE is a good browser. But I have to give them a tip of the hat for their conditional comments. This feature saved my butt, by allowing a construct something like this one:

  <!--[if IE]>
  <p>Welcome to Internet Explorer.</p>
  <![endif]-->

Any browser other than IE simply ignores the useless comment. Meanwhile, IE steams full speed ahead and uses the enclosed information. Sweet.


Posted

in