Posted By

djmicahelb on 04/11/10


Tagged


Versions (?)

Conditional Comments


 / Published in: HTML
 

URL: http://reference.sitepoint.com/css/conditionalcomments

Make sure to refer to the above url for a more complete summary of how it works.

  1. <!--[if IE 6]>
  2. <p>You are using Internet Explorer 6.</p>
  3. <![endif]-->
  4.  
  5. <!--[if !IE]><!-->
  6. <p>You are not using Internet Explorer.</p>
  7. <!--<![endif]-->
  8.  
  9. <!--[if lte IE 6]>
  10. lt = less than
  11. lte = less than or equal to
  12. gt = greater than
  13. gte = greather than or equal to
  14. <![endif]-->
  15.  
  16. <!--[if expression]> HTML - Downlevel hidden <![endif]-->
  17.  
  18. <![if expression]> HTML - Downlevel revealed <![endif]>

Report this snippet  

You need to login to post a comment.